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

8 lines
293 B
Rust

// expect: reject E7005
// phase: 6
// spec: docs/spec/15-source-language.md §10; docs/spec/03-memory-model.md §25
module test.own_array_content
fn bad<T>() -> own_array<T> effects [] { trap; }
fn use() -> void effects [] { let x = bad::<own<u64>>(); trap; }
fn main() -> void effects [] {}