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