summary refs log tree commit diff
path: root/src/test/run-pass/vec-drop.rs
blob: ce6070bbabdd6f5c211cb657d6ad9ebfac8999b8 (plain)
1
2
3
4
5
6
7
8


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}];
}