rust/src/test/run-pass/mutable-vec-drop.rs
Brian Anderson 518dc52f85 Reformat
This changes the indexing syntax from .() to [], the vector syntax from ~[] to
[] and the extension syntax from #fmt() to #fmt[]
2011-08-20 11:04:00 -07:00

7 lines
180 B
Rust

fn main() {
// This just tests whether the vec leaks its members.
let pvec: [mutable @{a: int, b: int}] =
[mutable @{a: 1, b: 2}, @{a: 3, b: 4}, @{a: 5, b: 6}];
}