mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
14 lines
404 B
Text
14 lines
404 B
Text
error: this loop could be written as a `for` loop
|
|
--> $DIR/issue_2356.rs:24:29
|
|
|
|
|
24 | while let Some(e) = it.next() {
|
|
| ^^^^^^^^^ help: try: `for e in it { .. }`
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/issue_2356.rs:10:9
|
|
|
|
|
10 | #![deny(clippy::while_let_on_iterator)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|