]> git.lizzy.rs Git - rust.git/blob - tests/ui/for_loop_unfixable.stderr
iterate List by value
[rust.git] / tests / ui / for_loop_unfixable.stderr
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