mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 10:07:30 +00:00
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
error: usage of `.skip(0)`
|
|
--> $DIR/iter_skip_zero.rs:12:35
|
|
|
|
|
LL | let _ = [1, 2, 3].iter().skip(0);
|
|
| ^ help: if you meant to skip the first element, use: `1`
|
|
|
|
|
= note: this call to `skip` does nothing and is useless; remove it
|
|
= note: `-D clippy::iter-skip-zero` implied by `-D warnings`
|
|
|
|
error: usage of `.skip(0)`
|
|
--> $DIR/iter_skip_zero.rs:13:39
|
|
|
|
|
LL | let _ = vec![1, 2, 3].iter().skip(0);
|
|
| ^ help: if you meant to skip the first element, use: `1`
|
|
|
|
|
= note: this call to `skip` does nothing and is useless; remove it
|
|
|
|
error: usage of `.skip(0)`
|
|
--> $DIR/iter_skip_zero.rs:14:34
|
|
|
|
|
LL | let _ = once([1, 2, 3]).skip(0);
|
|
| ^ help: if you meant to skip the first element, use: `1`
|
|
|
|
|
= note: this call to `skip` does nothing and is useless; remove it
|
|
|
|
error: usage of `.skip(0)`
|
|
--> $DIR/iter_skip_zero.rs:15:71
|
|
|
|
|
LL | let _ = vec![1, 2, 3].iter().chain([1, 2, 3].iter().skip(0)).skip(0);
|
|
| ^ help: if you meant to skip the first element, use: `1`
|
|
|
|
|
= note: this call to `skip` does nothing and is useless; remove it
|
|
|
|
error: usage of `.skip(0)`
|
|
--> $DIR/iter_skip_zero.rs:15:62
|
|
|
|
|
LL | let _ = vec![1, 2, 3].iter().chain([1, 2, 3].iter().skip(0)).skip(0);
|
|
| ^ help: if you meant to skip the first element, use: `1`
|
|
|
|
|
= note: this call to `skip` does nothing and is useless; remove it
|
|
|
|
error: aborting due to 5 previous errors
|
|
|