]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/ivec-pass-by-value.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / ivec-pass-by-value.rs
index 4a82e6844b979f96dbaf2e95617cbf61d26a527d..cd58689a19e311badd7c2b91a28d85f5e0280435 100644 (file)
@@ -8,5 +8,5 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn f(_a: ~[int]) { }
-pub fn main() { f(~[1, 2, 3, 4, 5]); }
+fn f(_a: Vec<int> ) { }
+pub fn main() { f(vec!(1, 2, 3, 4, 5)); }