]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/borrowck-binding-mutbl.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / borrowck-binding-mutbl.rs
index 377ed2608e51329b293c5dbe631391d9db34daef..126f0fd7ac5eabd8b5b0f50f011b1a08269114aa 100644 (file)
@@ -8,13 +8,13 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-struct F { f: ~[int] }
+struct F { f: Vec<int> }
 
 fn impure(_v: &[int]) {
 }
 
 pub fn main() {
-    let mut x = F {f: ~[3]};
+    let mut x = F {f: vec!(3)};
 
     match x {
       F {f: ref mut v} => {