about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/iter_skip_zero.stderr
blob: 235074374aa1c72290489bb56547a426cb2f6e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
error: usage of `.skip(0)`
  --> tests/ui/iter_skip_zero.rs:11: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`
   = help: to override `-D warnings` add `#[allow(clippy::iter_skip_zero)]`

error: usage of `.skip(0)`
  --> tests/ui/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)`
  --> tests/ui/iter_skip_zero.rs:15: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)`
  --> tests/ui/iter_skip_zero.rs:17: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)`
  --> tests/ui/iter_skip_zero.rs:17: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