]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/iter_nth_zero.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / iter_nth_zero.stderr
CommitLineData
f20569fa
XL
1error: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
2 --> $DIR/iter_nth_zero.rs:20:14
3 |
4LL | let _x = s.iter().nth(0);
5 | ^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `s.iter().next()`
6 |
7 = note: `-D clippy::iter-nth-zero` implied by `-D warnings`
8
9error: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
10 --> $DIR/iter_nth_zero.rs:25:14
11 |
12LL | let _y = iter.nth(0);
13 | ^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `iter.next()`
14
15error: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
16 --> $DIR/iter_nth_zero.rs:30:22
17 |
18LL | let _unwrapped = iter2.nth(0).unwrap();
19 | ^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `iter2.next()`
20
21error: aborting due to 3 previous errors
22