rust/src/test/run-pass/alloca-from-derived-tydesc.rs

18 lines
205 B
Rust
Raw Normal View History

// xfail-stage0
tag option[T] {
some(T);
none;
}
type r[T] = rec(mutable (option[T])[] v);
fn f[T]() -> T[] {
ret ~[];
}
fn main() {
let r[int] r = rec(mutable v=~[]);
r.v = f();
}