rust/src/test/run-pass/alloca-from-derived-tydesc.rs
2012-08-01 19:16:06 -07:00

8 lines
161 B
Rust

enum option<T> { some(T), none, }
type r<T> = {mut v: ~[option<T>]};
fn f<T>() -> ~[T] { return ~[]; }
fn main() { let r: r<int> = {mut v: ~[]}; r.v = f(); }