2018-01-30 13:52:45 -06:00
|
|
|
error: this loop could be written as a `for` loop
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/issue_2356.rs:17:9
|
2018-01-30 13:52:45 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | while let Some(e) = it.next() {
|
2020-04-25 13:07:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for e in it`
|
2018-01-30 13:52:45 -06:00
|
|
|
|
|
2020-01-31 13:21:10 -06:00
|
|
|
note: the lint level is defined here
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/issue_2356.rs:1:9
|
2018-01-30 13:52:45 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | #![deny(clippy::while_let_on_iterator)]
|
2018-08-01 09:30:44 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-01-30 13:52:45 -06:00
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error
|
2018-01-30 13:52:45 -06:00
|
|
|
|