]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/while-with-break.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / while-with-break.rs
index 1f16b5fdb5c67055c81392458ab11805caeae88b..a7328267541ab9b7c47bef68edbf3a7b5b7ef106 100644 (file)
@@ -15,8 +15,8 @@ pub fn main() {
         println!("{}", i);
         i = i + 1;
         if i == 95 {
-            let _v: ~[int] =
-                ~[1, 2, 3, 4, 5]; // we check that it is freed by break
+            let _v: Vec<int> =
+                vec!(1, 2, 3, 4, 5); // we check that it is freed by break
 
             println!("breaking");
             break;