]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/loop-scope.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / loop-scope.rs
index 436bdf256ca422b7928cc3d584fb895bfef86404..1dc3700194c514bdb8879acc2fb968c750d6ab03 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 pub fn main() {
-    let x = ~[10, 20, 30];
+    let x = vec!(10, 20, 30);
     let mut sum = 0;
     for x in x.iter() { sum += *x; }
     assert_eq!(sum, 60);