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