| error: this loop could be written as a `for` loop | |
| --> tests/ui/issue_2356.rs:15:9 | |
| | | |
| LL | while let Some(e) = it.next() { | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for e in it` | |
| | | |
| = note: `-D clippy::while-let-on-iterator` implied by `-D warnings` | |
| = help: to override `-D warnings` add `#[allow(clippy::while_let_on_iterator)]` | |
| error: aborting due to 1 previous error | |