]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/for_loop_unfixable.stderr
Rollup merge of #102110 - CleanCut:migrate_rustc_passes_diagnostics, r=davidtwco
[rust.git] / src / tools / clippy / 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:15: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