]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/borrowck-vec-pattern-loan-from-mut.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / compile-fail / borrowck-vec-pattern-loan-from-mut.rs
index d3f23a34978198e171a96f71b1f388b05a0ce807..ca28b3cfd45b6d4d279ab07441e82d20072bb1f6 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 fn a() {
-    let mut v = ~[1, 2, 3];
+    let mut v = vec!(1, 2, 3);
     let vb: &mut [int] = v;
     match vb {
         [_a, ..tail] => {