]> git.lizzy.rs Git - rust.git/commitdiff
Remove useless part of test
authorPascal Hertleif <killercup@gmail.com>
Sat, 28 Jan 2017 13:17:47 +0000 (14:17 +0100)
committerPascal Hertleif <killercup@gmail.com>
Sat, 28 Jan 2017 13:17:47 +0000 (14:17 +0100)
tests/compile-fail/for_loop.rs

index 2712d4a102393f30f3ce09da4ab3618586cfe208..09b0431c65669d55381d67b6418073c136ec43b4 100644 (file)
@@ -286,11 +286,6 @@ fn main() {
         id_col[i] = 1f64;
     }
 
-    // This is fine.
-    for i in (10..0).map(|x| x * 2) {
-        println!("{}", i);
-    }
-
     for _v in vec.iter() { }
     //~^ ERROR it is more idiomatic to loop over `&vec`
     //~| HELP to write this more concisely, try looping over