fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent 2 --> $DIR/iter_nth_zero.rs:18: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 = help: to override `-D warnings` add `#[allow(clippy::iter_nth_zero)]` 9 10error: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent 11 --> $DIR/iter_nth_zero.rs:23:14 12 | 13LL | let _y = iter.nth(0); 14 | ^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `iter.next()` 15 16error: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent 17 --> $DIR/iter_nth_zero.rs:28:22 18 | 19LL | let _unwrapped = iter2.nth(0).unwrap(); 20 | ^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `iter2.next()` 21 22error: aborting due to 3 previous errors 23