]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/moves-based-on-type-access-to-field.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / compile-fail / moves-based-on-type-access-to-field.rs
index 1557b290c2cb19e3fb3399b49a438a3becafd73c..59bdc0b8a4d190a42fdd54a63c2f62fa9d38c248 100644 (file)
@@ -22,7 +22,7 @@ fn f10() {
 }
 
 fn f20() {
-    let x = ~[~"hi"];
+    let x = vec!(~"hi");
     consume(x[0]);
     touch(&x[0]); //~ ERROR use of partially moved value: `x`
 }