]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/skip_while_next.stderr
Auto merge of #71321 - matthewjasper:alloc-min-spec, r=sfackler
[rust.git] / src / tools / clippy / tests / ui / skip_while_next.stderr
1 error: called `skip_while(p).next()` on an `Iterator`
2   --> $DIR/skip_while_next.rs:14:13
3    |
4 LL |     let _ = v.iter().skip_while(|&x| *x < 0).next();
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::skip-while-next` implied by `-D warnings`
8    = help: this is more succinctly expressed by calling `.find(!p)` instead
9
10 error: called `skip_while(p).next()` on an `Iterator`
11   --> $DIR/skip_while_next.rs:17:13
12    |
13 LL |       let _ = v.iter().skip_while(|&x| {
14    |  _____________^
15 LL | |                                 *x < 0
16 LL | |                             }
17 LL | |                    ).next();
18    | |___________________________^
19    |
20    = help: this is more succinctly expressed by calling `.find(!p)` instead
21
22 error: aborting due to 2 previous errors
23