1 error: this loop could be written as a `for` loop
2 --> $DIR/issue_2356.rs:15:9
4 LL | while let Some(e) = it.next() {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for e in it`
7 note: the lint level is defined here
8 --> $DIR/issue_2356.rs:1:9
10 LL | #![deny(clippy::while_let_on_iterator)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: aborting due to previous error