]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/mutable-vec-drop.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / mutable-vec-drop.rs
index 2a04ca4ccd2ef884d001b8ace6e63cfe40a56669..9a83907c66f34bbc38827e587cba4c4ce3ba21c6 100644 (file)
@@ -15,6 +15,6 @@ struct Pair { a: int, b: int}
 
 pub fn main() {
     // This just tests whether the vec leaks its members.
-    let mut _pvec: ~[@Pair] =
-        ~[@Pair{a: 1, b: 2}, @Pair{a: 3, b: 4}, @Pair{a: 5, b: 6}];
+    let mut _pvec: Vec<@Pair> =
+        vec!(@Pair{a: 1, b: 2}, @Pair{a: 3, b: 4}, @Pair{a: 5, b: 6});
 }