mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-25 12:33:30 +00:00
14 lines
412 B
Text
14 lines
412 B
Text
error: this loop could be written as a `for` loop
|
|
--> tests/ui/issue_2356.rs:17:9
|
|
|
|
|
LL | while let Some(e) = it.next() {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for e in it`
|
|
|
|
|
note: the lint level is defined here
|
|
--> tests/ui/issue_2356.rs:1:9
|
|
|
|
|
LL | #![deny(clippy::while_let_on_iterator)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|