2020-01-24 02:04:46 -06:00
|
|
|
error: called `skip(x).next()` on an iterator
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/iter_skip_next.rs:13:13
|
2018-12-30 05:41:37 -06:00
|
|
|
|
|
|
|
|
LL | let _ = some_vec.iter().skip(42).next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::iter-skip-next` implied by `-D warnings`
|
2020-01-24 02:04:46 -06:00
|
|
|
= help: This is more succinctly expressed by calling `nth(x)`.
|
2018-12-30 05:41:37 -06:00
|
|
|
|
2020-01-24 02:04:46 -06:00
|
|
|
error: called `skip(x).next()` on an iterator
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/iter_skip_next.rs:14:13
|
2018-12-30 05:41:37 -06:00
|
|
|
|
|
|
|
|
LL | let _ = some_vec.iter().cycle().skip(42).next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-01-24 02:04:46 -06:00
|
|
|
|
|
|
|
|
= help: This is more succinctly expressed by calling `nth(x)`.
|
2018-12-30 05:41:37 -06:00
|
|
|
|
2020-01-24 02:04:46 -06:00
|
|
|
error: called `skip(x).next()` on an iterator
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/iter_skip_next.rs:15:13
|
2018-12-30 05:41:37 -06:00
|
|
|
|
|
|
|
|
LL | let _ = (1..10).skip(10).next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2020-01-24 02:04:46 -06:00
|
|
|
|
|
|
|
|
= help: This is more succinctly expressed by calling `nth(x)`.
|
2018-12-30 05:41:37 -06:00
|
|
|
|
2020-01-24 02:04:46 -06:00
|
|
|
error: called `skip(x).next()` on an iterator
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/iter_skip_next.rs:16:14
|
2018-12-30 05:41:37 -06:00
|
|
|
|
|
|
|
|
LL | let _ = &some_vec[..].iter().skip(3).next();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-01-24 02:04:46 -06:00
|
|
|
|
|
|
|
|
= help: This is more succinctly expressed by calling `nth(x)`.
|
2018-12-30 05:41:37 -06:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|