blob: 3c33af3a1608008a5f99d3ed27cca87997d594ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
error: called `skip_while(<p>).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(!<p>)` instead
= note: `-D clippy::skip-while-next` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::skip_while_next)]`
error: called `skip_while(<p>).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(!<p>)` instead
error: aborting due to 2 previous errors
|