11 lines
394 B
Rust
11 lines
394 B
Rust
// expect: accept
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §10
|
|
module test.own_array_content
|
|
struct region { x: u64 }
|
|
struct stream { x: u64 }
|
|
struct listener { x: u64 }
|
|
fn unused<T>(a: own_array<region>, b: own_array<stream>, c: own_array<listener>, t: T) -> void effects [] { trap; }
|
|
fn concrete(a: own_array<region>) -> void effects [] { trap; }
|
|
fn main() -> void effects [] {}
|