8 lines
342 B
Rust
8 lines
342 B
Rust
// expect: reject E2101 E2101
|
|
// The conflicting reborrow and its use at the call each reject.
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §5
|
|
module test.array_arguments
|
|
fn read(a: mut<[u64; 2]>, b: ref<[u64; 2]>) -> u64 effects [] { return b[0]; }
|
|
fn main() -> u64 effects [] { var a: [u64; 2] = zero; return read(mut a, ref a); }
|