]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/match-vec-invalid.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / compile-fail / match-vec-invalid.rs
index 5a50cb48da665b07c80999964919391d799c8b37..389e26aa400dcad4d0b19e50fe30cbfff3837e51 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 fn main() {
-    let a = ~[];
+    let a = Vec::new();
     match a {
         [1, ..tail, ..tail] => {}, //~ ERROR: unexpected token: `..`
         _ => ()