]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-2590.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / compile-fail / issue-2590.rs
index a2bb583a3d698225b1b7602bcec53e177a8159ce..94c155fce9b3c9f276f9232e11ecc6cb081ea94f 100644 (file)
@@ -9,15 +9,15 @@
 // except according to those terms.
 
 struct parser {
-    tokens: ~[int],
+    tokens: Vec<int> ,
 }
 
 trait parse {
-    fn parse(&self) -> ~[int];
+    fn parse(&self) -> Vec<int> ;
 }
 
 impl parse for parser {
-    fn parse(&self) -> ~[int] {
+    fn parse(&self) -> Vec<int> {
         self.tokens //~ ERROR cannot move out of dereference of `&`-pointer
     }
 }