2023-07-31 21:53:53 +00:00
|
|
|
error: usage of `.skip(0)`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/iter_skip_zero.rs:11:35
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
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`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::iter_skip_zero)]`
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
error: usage of `.skip(0)`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/iter_skip_zero.rs:12:39
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
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)`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/iter_skip_zero.rs:13:34
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
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)`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/iter_skip_zero.rs:14:71
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
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)`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/iter_skip_zero.rs:14:62
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|