PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

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