]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/expr-fn.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / expr-fn.rs
index cba1bab3004684eb378bc5ef27db518c1126ea0c..25dae36bcb1546439949a170b4e9f8f031f757f4 100644 (file)
@@ -14,7 +14,7 @@ fn f() -> int { 10 }
 }
 
 fn test_vec() {
-    fn f() -> ~[int] { ~[10, 11] }
+    fn f() -> Vec<int> { vec!(10, 11) }
     assert_eq!(f()[1], 11);
 }