]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: you are iterating over `Iterator::next()` which is an Option; this will compile but is probably not what you want |
2 | --> $DIR/for_loop_unfixable.rs:21:15 | |
3 | | | |
4 | LL | for _v in vec.iter().next() {} | |
5 | | ^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `-D clippy::iter-next-loop` implied by `-D warnings` | |
8 | ||
9 | error: aborting due to previous error | |
10 |