fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.7 KiB44 linesraw
1error: usage of `.skip(0)`
2  --> $DIR/iter_skip_zero.rs:11:35
3   |
4LL |     let _ = [1, 2, 3].iter().skip(0);
5   |                                   ^ help: if you meant to skip the first element, use: `1`
6   |
7   = note: this call to `skip` does nothing and is useless; remove it
8   = note: `-D clippy::iter-skip-zero` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::iter_skip_zero)]`
10
11error: usage of `.skip(0)`
12  --> $DIR/iter_skip_zero.rs:12:39
13   |
14LL |     let _ = vec![1, 2, 3].iter().skip(0);
15   |                                       ^ help: if you meant to skip the first element, use: `1`
16   |
17   = note: this call to `skip` does nothing and is useless; remove it
18
19error: usage of `.skip(0)`
20  --> $DIR/iter_skip_zero.rs:13:34
21   |
22LL |     let _ = once([1, 2, 3]).skip(0);
23   |                                  ^ help: if you meant to skip the first element, use: `1`
24   |
25   = note: this call to `skip` does nothing and is useless; remove it
26
27error: usage of `.skip(0)`
28  --> $DIR/iter_skip_zero.rs:14:71
29   |
30LL |     let _ = vec![1, 2, 3].iter().chain([1, 2, 3].iter().skip(0)).skip(0);
31   |                                                                       ^ help: if you meant to skip the first element, use: `1`
32   |
33   = note: this call to `skip` does nothing and is useless; remove it
34
35error: usage of `.skip(0)`
36  --> $DIR/iter_skip_zero.rs:14:62
37   |
38LL |     let _ = vec![1, 2, 3].iter().chain([1, 2, 3].iter().skip(0)).skip(0);
39   |                                                              ^ help: if you meant to skip the first element, use: `1`
40   |
41   = note: this call to `skip` does nothing and is useless; remove it
42
43error: aborting due to 5 previous errors
44