]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/vec-mut-iter-borrow.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / compile-fail / vec-mut-iter-borrow.rs
index 72dbd82e947f1701c64905708828b482bebe077d..a3c7fc2d4c8af5a2d382ec74eca38b41b434f70e 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 fn main() {
-    let mut xs = ~[1, 2, 3, 4];
+    let mut xs = vec!(1, 2, 3, 4);
 
     for x in xs.mut_iter() {
         xs.push(1) //~ ERROR cannot borrow `xs`