]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/coerce-reborrow-imm-vec-rcvr.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / coerce-reborrow-imm-vec-rcvr.rs
index dee2b6f2568d72ed05d0f6a7e33dbe63cdea98fc..ffac7cbdab0de33d9b63510423372b576fd1d0df 100644 (file)
@@ -8,16 +8,16 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn bar(v: &mut [uint]) -> ~[uint] {
+fn bar(v: &mut [uint]) -> Vec<uint> {
     v.to_owned()
 }
 
-fn bip(v: &[uint]) -> ~[uint] {
+fn bip(v: &[uint]) -> Vec<uint> {
     v.to_owned()
 }
 
 pub fn main() {
-    let mut the_vec = ~[1u, 2, 3, 100];
+    let mut the_vec = vec!(1u, 2, 3, 100);
     assert_eq!(the_vec.clone(), bar(the_vec));
     assert_eq!(the_vec.clone(), bip(the_vec));
 }