fork/rust

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

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

master
2.4 KiB100 linesraw
1error: some ranges overlap
2  --> $DIR/match_overlapping_arm.rs:12:9
3   |
4LL |         0..=10 => println!("0..=10"),
5   |         ^^^^^^
6   |
7note: overlaps with this
8  --> $DIR/match_overlapping_arm.rs:14:9
9   |
10LL |         0..=11 => println!("0..=11"),
11   |         ^^^^^^
12   = note: `-D clippy::match-overlapping-arm` implied by `-D warnings`
13   = help: to override `-D warnings` add `#[allow(clippy::match_overlapping_arm)]`
14
15error: some ranges overlap
16  --> $DIR/match_overlapping_arm.rs:19:9
17   |
18LL |         0..=5 => println!("0..=5"),
19   |         ^^^^^
20   |
21note: overlaps with this
22  --> $DIR/match_overlapping_arm.rs:22:9
23   |
24LL |         FOO..=11 => println!("FOO..=11"),
25   |         ^^^^^^^^
26
27error: some ranges overlap
28  --> $DIR/match_overlapping_arm.rs:57:9
29   |
30LL |         0..11 => println!("0..11"),
31   |         ^^^^^
32   |
33note: overlaps with this
34  --> $DIR/match_overlapping_arm.rs:59:9
35   |
36LL |         0..=11 => println!("0..=11"),
37   |         ^^^^^^
38
39error: some ranges overlap
40  --> $DIR/match_overlapping_arm.rs:83:9
41   |
42LL |         0..=10 => println!("0..=10"),
43   |         ^^^^^^
44   |
45note: overlaps with this
46  --> $DIR/match_overlapping_arm.rs:82:9
47   |
48LL |         5..14 => println!("5..14"),
49   |         ^^^^^
50
51error: some ranges overlap
52  --> $DIR/match_overlapping_arm.rs:89:9
53   |
54LL |         0..7 => println!("0..7"),
55   |         ^^^^
56   |
57note: overlaps with this
58  --> $DIR/match_overlapping_arm.rs:91:9
59   |
60LL |         0..=10 => println!("0..=10"),
61   |         ^^^^^^
62
63error: some ranges overlap
64  --> $DIR/match_overlapping_arm.rs:102:9
65   |
66LL |         ..=23 => println!("..=23"),
67   |         ^^^^^
68   |
69note: overlaps with this
70  --> $DIR/match_overlapping_arm.rs:104:9
71   |
72LL |         ..26 => println!("..26"),
73   |         ^^^^
74
75error: some ranges overlap
76  --> $DIR/match_overlapping_arm.rs:112:9
77   |
78LL |         21..=30 => (),
79   |         ^^^^^^^
80   |
81note: overlaps with this
82  --> $DIR/match_overlapping_arm.rs:114:9
83   |
84LL |         21..=40 => (),
85   |         ^^^^^^^
86
87error: some ranges overlap
88  --> $DIR/match_overlapping_arm.rs:127:9
89   |
90LL |         0..=0x0000_0000_0000_00ff => (),
91   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
92   |
93note: overlaps with this
94  --> $DIR/match_overlapping_arm.rs:129:9
95   |
96LL |         0..=0x0000_0000_0000_ffff => (),
97   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
98
99error: aborting due to 8 previous errors
100