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