Files
aji/tests/conformance/source/own_array_content/phantom.aji
T

8 lines
278 B
Rust

// expect: accept
// phase: 6
// spec: docs/spec/15-source-language.md §10; docs/spec/03-memory-model.md §25
module test.own_array_content
struct Phantom<T> { item: u64 }
fn unused<T>(p: own_array<Phantom<own<T>>>) -> void effects [] { trap; }
fn main() -> void effects [] {}