From 2357dfe8ee709c827d47e4f29d29516d666ce8a8 Mon Sep 17 00:00:00 2001 From: Pascal Hertleif Date: Sat, 28 Jan 2017 14:17:47 +0100 Subject: [PATCH] Remove useless part of test --- tests/compile-fail/for_loop.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/compile-fail/for_loop.rs b/tests/compile-fail/for_loop.rs index 2712d4a1023..09b0431c656 100644 --- a/tests/compile-fail/for_loop.rs +++ b/tests/compile-fail/for_loop.rs @@ -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