2018-12-30 11:41:37 +00:00
|
|
|
error: called `skip(x).next()` on an iterator. This is more succinctly expressed by calling `nth(x)`
|
2019-01-02 21:48:44 +00:00
|
|
|
--> $DIR/iter_skip_next.rs:22:13
|
2018-12-30 11:41:37 +00:00
|
|
|
|
|
|
|
|
LL | let _ = some_vec.iter().skip(42).next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::iter-skip-next` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: called `skip(x).next()` on an iterator. This is more succinctly expressed by calling `nth(x)`
|
2019-01-02 21:48:44 +00:00
|
|
|
--> $DIR/iter_skip_next.rs:23:13
|
2018-12-30 11:41:37 +00:00
|
|
|
|
|
|
|
|
LL | let _ = some_vec.iter().cycle().skip(42).next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: called `skip(x).next()` on an iterator. This is more succinctly expressed by calling `nth(x)`
|
2019-01-02 21:48:44 +00:00
|
|
|
--> $DIR/iter_skip_next.rs:24:13
|
2018-12-30 11:41:37 +00:00
|
|
|
|
|
|
|
|
LL | let _ = (1..10).skip(10).next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: called `skip(x).next()` on an iterator. This is more succinctly expressed by calling `nth(x)`
|
2019-01-02 21:48:44 +00:00
|
|
|
--> $DIR/iter_skip_next.rs:25:14
|
2018-12-30 11:41:37 +00:00
|
|
|
|
|
|
|
|
LL | let _ = &some_vec[..].iter().skip(3).next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|