]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/ivec-add.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / ivec-add.rs
index ecf530f07f309e9d5f848482db75d84541ed64c2..f215958493fb0fb7add6061b824b1f99450043a0 100644 (file)
@@ -8,9 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn double<T:Clone>(a: T) -> ~[T] { return ~[a.clone()] + ~[a]; }
+fn double<T:Clone>(a: T) -> Vec<T> { return vec!(a.clone()) + vec!(a); }
 
-fn double_int(a: int) -> ~[int] { return ~[a] + ~[a]; }
+fn double_int(a: int) -> Vec<int> { return vec!(a) + vec!(a); }
 
 pub fn main() {
     let mut d = double(1);