We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13bb22a commit 7b135efCopy full SHA for 7b135ef
tests/compile-fail/for_loop.rs
@@ -158,10 +158,6 @@ fn main() {
158
println!("{}", i);
159
}
160
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
-
165
for i in (10..0).map(|x| x * 2) { // not an error, it can't be known what arbitrary methods do to a range
166
167
0 commit comments