2020-01-24 09:04:46 +01:00
|
|
|
error: called `skip(x).next()` on an iterator
|
2020-07-25 16:09:44 +02:00
|
|
|
--> $DIR/iter_skip_next.rs:15:28
|
2018-12-30 12:41:37 +01:00
|
|
|
|
|
|
|
|
LL | let _ = some_vec.iter().skip(42).next();
|
2020-07-25 16:09:44 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: use `nth` instead: `.nth(42)`
|
2018-12-30 12:41:37 +01:00
|
|
|
|
|
|
|
|
= note: `-D clippy::iter-skip-next` implied by `-D warnings`
|
|
|
|
|
2020-01-24 09:04:46 +01:00
|
|
|
error: called `skip(x).next()` on an iterator
|
2020-07-25 16:09:44 +02:00
|
|
|
--> $DIR/iter_skip_next.rs:16:36
|
2018-12-30 12:41:37 +01:00
|
|
|
|
|
|
|
|
LL | let _ = some_vec.iter().cycle().skip(42).next();
|
2020-07-25 16:09:44 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: use `nth` instead: `.nth(42)`
|
2018-12-30 12:41:37 +01:00
|
|
|
|
2020-01-24 09:04:46 +01:00
|
|
|
error: called `skip(x).next()` on an iterator
|
2020-07-25 16:09:44 +02:00
|
|
|
--> $DIR/iter_skip_next.rs:17:20
|
2018-12-30 12:41:37 +01:00
|
|
|
|
|
|
|
|
LL | let _ = (1..10).skip(10).next();
|
2020-07-25 16:09:44 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: use `nth` instead: `.nth(10)`
|
2018-12-30 12:41:37 +01:00
|
|
|
|
2020-01-24 09:04:46 +01:00
|
|
|
error: called `skip(x).next()` on an iterator
|
2020-07-25 16:09:44 +02:00
|
|
|
--> $DIR/iter_skip_next.rs:18:33
|
2018-12-30 12:41:37 +01:00
|
|
|
|
|
|
|
|
LL | let _ = &some_vec[..].iter().skip(3).next();
|
2020-07-25 16:09:44 +02:00
|
|
|
| ^^^^^^^^^^^^^^^ help: use `nth` instead: `.nth(3)`
|
2018-12-30 12:41:37 +01:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|