]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/skip_while_next.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / skip_while_next.stderr
CommitLineData
f20569fa
XL
1error: called `skip_while(<p>).next()` on an `Iterator`
2 --> $DIR/skip_while_next.rs:14:13
3 |
4LL | 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
10error: called `skip_while(<p>).next()` on an `Iterator`
11 --> $DIR/skip_while_next.rs:17:13
12 |
13LL | let _ = v.iter().skip_while(|&x| {
14 | _____________^
15LL | | *x < 0
16LL | | }
17LL | | ).next();
18 | |___________________________^
19 |
20 = help: this is more succinctly expressed by calling `.find(!<p>)` instead
21
22error: aborting due to 2 previous errors
23