9 lines
349 B
Rust
9 lines
349 B
Rust
// expect: accept
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §10
|
|
module test.own_array_content
|
|
struct Node { item: own<u64> }
|
|
struct Plain { values: [u64; 2] }
|
|
fn unused<T, F: fn(own_array<T>) -> void effects []>(a: own_array<T>, b: own_array<Plain>, c: own_array<iref<Node>>) -> void effects [] { trap; }
|
|
fn main() -> void effects [] {}
|