Remove bad test in for_loop

This commit is contained in:
mcarton 2016-03-07 16:42:49 +01:00
parent 13bb22a68b
commit 7b135efa73

View file

@ -158,10 +158,6 @@ fn main() {
println!("{}", i);
}
for i in (10..0).rev() { // not an error, this is an established idiom for looping backwards on a range
println!("{}", i);
}
for i in (10..0).map(|x| x * 2) { // not an error, it can't be known what arbitrary methods do to a range
println!("{}", i);
}