9 lines
320 B
Rust
9 lines
320 B
Rust
// expect: run
|
|
// result: 42
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §5
|
|
// module: test.arrays=source/array_arguments/arrays.aji.inc
|
|
module test.array_arguments
|
|
import test.arrays;
|
|
fn main() -> u64 effects [] { var a: [u64; 2] = [1u64; 2]; test.arrays.set(mut a); return test.arrays.first::<u64>(ref a); }
|