]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-fail/unwind-misc-1.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-fail / unwind-misc-1.rs
index f9abb1566bb0f729d26fe0d87d4ed7d7f474226b..9fb53d0f9e872706fd7c23d6c14e8f13ea5375d9 100644 (file)
@@ -18,7 +18,7 @@
 fn main() {
     let _count = @0u;
     let mut map = collections::HashMap::new();
-    let mut arr = ~[];
+    let mut arr = Vec::new();
     for _i in range(0u, 10u) {
         arr.push(@~"key stuff");
         map.insert(arr.clone(), arr + &[@~"value stuff"]);