/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
- fn main() {
- // This just tests whether the vec leaks its members.
- let pvec: ~[@{x: int, y: int}] =
- ~[@{x: 1, y: 2}, @{x: 3, y: 4}, @{x: 5, y: 6}];
- }