]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/break.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / break.rs
index 1ae77bc1eca842c4b90d280e0376ca375e00b848..bcfb8f6f9141a2d379a9b7bf2cce3aff3e9bab7c 100644 (file)
@@ -25,7 +25,7 @@ pub fn main() {
         i += 1; if i % 2 == 0 { continue; } assert!((i % 2 != 0));
         if i >= 10 { break; }
     }
-    let ys = ~[1, 2, 3, 4, 5, 6];
+    let ys = vec!(1, 2, 3, 4, 5, 6);
     for x in ys.iter() {
         if *x % 2 == 0 { continue; }
         assert!((*x % 2 != 0));