2020-07-13 12:33:25 -05:00
|
|
|
error: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
|
2019-12-28 16:37:23 -06:00
|
|
|
--> $DIR/iter_nth_zero.rs:20:14
|
|
|
|
|
|
|
|
|
LL | let _x = s.iter().nth(0);
|
2020-07-14 11:20:19 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `s.iter().next()`
|
2019-12-28 16:37:23 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::iter-nth-zero` implied by `-D warnings`
|
|
|
|
|
2020-07-13 12:33:25 -05:00
|
|
|
error: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
|
2019-12-28 16:37:23 -06:00
|
|
|
--> $DIR/iter_nth_zero.rs:25:14
|
|
|
|
|
|
|
|
|
LL | let _y = iter.nth(0);
|
2020-07-14 11:20:19 -05:00
|
|
|
| ^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `iter.next()`
|
2019-12-28 16:37:23 -06:00
|
|
|
|
2020-07-13 12:33:25 -05:00
|
|
|
error: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent
|
2019-12-28 16:37:23 -06:00
|
|
|
--> $DIR/iter_nth_zero.rs:30:22
|
|
|
|
|
|
|
|
|
LL | let _unwrapped = iter2.nth(0).unwrap();
|
2020-07-14 11:20:19 -05:00
|
|
|
| ^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `iter2.next()`
|
2019-12-28 16:37:23 -06:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|