PageRenderTime 11ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://github.com/jruderman/rust
Rust | 7 lines | 4 code | 3 blank | 0 comment | 0 complexity | f853a9e805ddc2e76a342233136d4766 MD5 | raw file
1enum option<T> { some(T), none, }
2
3type r<T> = {mut v: ~[option<T>]};
4
5fn f<T>() -> ~[T] { return ~[]; }
6
7fn main() { let r: r<int> = {mut v: ~[]}; r.v = f(); }