PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-pass/mutable-vec-drop.rs

http://github.com/jruderman/rust
Rust | 6 lines | 4 code | 1 blank | 1 comment | 0 complexity | 0a8878ded9558ff0e911bef92c7e8ce9 MD5 | raw file
1
2fn main() {
3    // This just tests whether the vec leaks its members.
4    let pvec: ~[mut @{a: int, b: int}] =
5        ~[mut @{a: 1, b: 2}, @{a: 3, b: 4}, @{a: 5, b: 6}];
6}