Files
aji/tests/conformance/source/array_literals/copy_iref_cap.aji
T

8 lines
318 B
Rust

// expect: accept
// phase: 6
// spec: docs/spec/15-source-language.md §5/§10
module test.array_literals
struct Node { value: own<u64> }
fn unused(a: iref<Node>, b: iref<Node>, cap: cap<mem.alloc>) -> void effects [] { let refs = [a, b]; let repeated = [a; 2]; let caps = [cap; 2]; }
fn main() -> void effects [] {}