Files
aji/tests/conformance/source/array_arguments/bytes_shorthand.aji
T

7 lines
221 B
Rust

// expect: reject E7005
// phase: 6
// spec: docs/spec/15-source-language.md §5
module test.array_arguments
fn first(a: ref<[u8; 2]>) -> u8 effects [] { return a[0]; }
fn main() -> u8 effects [] { return first(b"hi"); }