1 error: this loop could be written as a `for` loop
2 --> $DIR/while_let_on_iterator.rs:8:5
4 LL | while let Option::Some(x) = iter.next() {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for x in iter`
7 = note: `-D clippy::while-let-on-iterator` implied by `-D warnings`
9 error: this loop could be written as a `for` loop
10 --> $DIR/while_let_on_iterator.rs:13:5
12 LL | while let Some(x) = iter.next() {
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for x in iter`
15 error: this loop could be written as a `for` loop
16 --> $DIR/while_let_on_iterator.rs:18:5
18 LL | while let Some(_) = iter.next() {}
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for _ in iter`
21 error: this loop could be written as a `for` loop
22 --> $DIR/while_let_on_iterator.rs:97:9
24 LL | while let Some(_) = y.next() {
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for _ in y`
27 error: aborting due to 4 previous errors