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

10 lines
314 B
Rust

// expect: reject E7005
// phase: 6
// spec: docs/spec/15-source-language.md §10
module test.own_array_content
struct A { first: B, witness: own<u64> }
struct B { back: A }
struct Second<X, Y> { item: Y }
fn unused<T>(p: own_array<Second<A, B>>, t: T) -> void effects [] { trap; }
fn main() -> void effects [] {}