mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
11 lines
351 B
Plaintext
11 lines
351 B
Plaintext
error: you are iterating over `Iterator::next()` which is an Option; this will compile but is probably not what you want
|
|
--> $DIR/for_loop_unfixable.rs:14:15
|
|
|
|
|
LL | for _v in vec.iter().next() {}
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::iter-next-loop` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|