error: called `skip_while(
).next()` on an `Iterator` --> $DIR/skip_while_next.rs:14:13 | LL | let _ = v.iter().skip_while(|&x| *x < 0).next(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: this is more succinctly expressed by calling `.find(!
)` instead = note: `-D clippy::skip-while-next` implied by `-D warnings` error: called `skip_while(
).next()` on an `Iterator` --> $DIR/skip_while_next.rs:17:13 | LL | let _ = v.iter().skip_while(|&x| { | _____________^ LL | | *x < 0 LL | | } LL | | ).next(); | |___________________________^ | = help: this is more succinctly expressed by calling `.find(!
)` instead error: aborting due to 2 previous errors