2020-05-17 10:36:26 -05:00
|
|
|
error: you are iterating over `Iterator::next()` which is an Option; this will compile but is probably not what you want
|
2022-08-25 05:03:13 -05:00
|
|
|
--> $DIR/for_loop_unfixable.rs:15:15
|
2019-09-20 01:25:05 -05:00
|
|
|
|
|
2020-05-17 10:36:26 -05:00
|
|
|
LL | for _v in vec.iter().next() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::iter-next-loop` implied by `-D warnings`
|
2019-09-20 01:25:05 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|