]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-2904.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / issue-2904.rs
index 0fa93f37840a18240910e8be8c9427cd52a39da8..9ffe4bc4d7e5d67b86cb011d2edf967c23fb7bc0 100644 (file)
@@ -60,12 +60,12 @@ fn square_from_char(c: char) -> square {
     }
 }
 
-fn read_board_grid<rdr:'static + io::Reader>(mut input: rdr) -> ~[~[square]] {
+fn read_board_grid<rdr:'static + io::Reader>(mut input: rdr) -> vec!(vec!(square)) {
     let mut input: &mut io::Reader = &mut input;
-    let mut grid = ~[];
+    let mut grid = Vec::new();
     let mut line = [0, ..10];
     input.read(line);
-    let mut row = ~[];
+    let mut row = Vec::new();
     for c in line.iter() {
         row.push(square_from_char(*c as char))
     }