1 error: called `skip(x).next()` on an iterator. This is more succinctly expressed by calling `nth(x)`
2 --> $DIR/iter_skip_next.rs:13:13
4 LL | let _ = some_vec.iter().skip(42).next();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::iter-skip-next` implied by `-D warnings`
9 error: called `skip(x).next()` on an iterator. This is more succinctly expressed by calling `nth(x)`
10 --> $DIR/iter_skip_next.rs:14:13
12 LL | let _ = some_vec.iter().cycle().skip(42).next();
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: called `skip(x).next()` on an iterator. This is more succinctly expressed by calling `nth(x)`
16 --> $DIR/iter_skip_next.rs:15:13
18 LL | let _ = (1..10).skip(10).next();
19 | ^^^^^^^^^^^^^^^^^^^^^^^
21 error: called `skip(x).next()` on an iterator. This is more succinctly expressed by calling `nth(x)`
22 --> $DIR/iter_skip_next.rs:16:14
24 LL | let _ = &some_vec[..].iter().skip(3).next();
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: aborting due to 4 previous errors