2018-01-30 20:52:45 +01:00
|
|
|
error: this loop could be written as a `for` loop
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/issue_2356.rs:27:29
|
2018-01-30 20:52:45 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
27 | while let Some(e) = it.next() {
|
2018-01-30 20:52:45 +01:00
|
|
|
| ^^^^^^^^^ help: try: `for e in it { .. }`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/issue_2356.rs:13:9
|
2018-01-30 20:52:45 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
13 | #![deny(clippy::while_let_on_iterator)]
|
2018-08-01 16:30:44 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-01-30 20:52:45 +01:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|