Skip to content

Commit 7b135ef

Browse files
committed
Remove bad test in for_loop
1 parent 13bb22a commit 7b135ef

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/compile-fail/for_loop.rs

-4
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,6 @@ fn main() {
158158
println!("{}", i);
159159
}
160160

161-
for i in (10..0).rev() { // not an error, this is an established idiom for looping backwards on a range
162-
println!("{}", i);
163-
}
164-
165161
for i in (10..0).map(|x| x * 2) { // not an error, it can't be known what arbitrary methods do to a range
166162
println!("{}", i);
167163
}

0 commit comments

Comments
 (0)