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