Skip to content

Commit 2357dfe

Browse files
committed
Remove useless part of test
1 parent 2ba03c8 commit 2357dfe

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/compile-fail/for_loop.rs

-5
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,6 @@ fn main() {
286286
id_col[i] = 1f64;
287287
}
288288

289-
// This is fine.
290-
for i in (10..0).map(|x| x * 2) {
291-
println!("{}", i);
292-
}
293-
294289
for _v in vec.iter() { }
295290
//~^ ERROR it is more idiomatic to loop over `&vec`
296291
//~| HELP to write this more concisely, try looping over

0 commit comments

Comments
 (0)