rust/tests/ui/for_loop_unfixable.stderr

11 lines
351 B
Plaintext
Raw Normal View History

2020-05-10 22:53:31 +00:00
error: you are iterating over `Iterator::next()` which is an Option; this will compile but is probably not what you want
2021-09-27 22:19:33 +00:00
--> $DIR/for_loop_unfixable.rs:14:15
|
2020-05-10 22:53:31 +00:00
LL | for _v in vec.iter().next() {}
| ^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::iter-next-loop` implied by `-D warnings`
error: aborting due to previous error