1
1
error: some ranges overlap
2
2
--> $DIR/match_overlapping_arm.rs:11:9
3
3
|
4
- LL | 0... 10 => println!("0 ... 10"),
4
+ LL | 0..= 10 => println!("0 ... 10"),
5
5
| ^^^^^^
6
6
|
7
7
= note: `-D clippy::match-overlapping-arm` implied by `-D warnings`
8
8
note: overlaps with this
9
9
--> $DIR/match_overlapping_arm.rs:12:9
10
10
|
11
- LL | 0... 11 => println!("0 ... 11"),
11
+ LL | 0..= 11 => println!("0 ... 11"),
12
12
| ^^^^^^
13
13
14
14
error: some ranges overlap
15
15
--> $DIR/match_overlapping_arm.rs:17:9
16
16
|
17
- LL | 0... 5 => println!("0 ... 5"),
17
+ LL | 0..= 5 => println!("0 ... 5"),
18
18
| ^^^^^
19
19
|
20
20
note: overlaps with this
21
21
--> $DIR/match_overlapping_arm.rs:19:9
22
22
|
23
- LL | FOO... 11 => println!("0 ... 11"),
23
+ LL | FOO..= 11 => println!("0 ... 11"),
24
24
| ^^^^^^^^
25
25
26
26
error: some ranges overlap
27
27
--> $DIR/match_overlapping_arm.rs:25:9
28
28
|
29
- LL | 0... 5 => println!("0 ... 5"),
29
+ LL | 0..= 5 => println!("0 ... 5"),
30
30
| ^^^^^
31
31
|
32
32
note: overlaps with this
@@ -38,7 +38,7 @@ LL | 2 => println!("2"),
38
38
error: some ranges overlap
39
39
--> $DIR/match_overlapping_arm.rs:31:9
40
40
|
41
- LL | 0... 2 => println!("0 ... 2"),
41
+ LL | 0..= 2 => println!("0 ... 2"),
42
42
| ^^^^^
43
43
|
44
44
note: overlaps with this
@@ -56,7 +56,7 @@ LL | 0..11 => println!("0 .. 11"),
56
56
note: overlaps with this
57
57
--> $DIR/match_overlapping_arm.rs:55:9
58
58
|
59
- LL | 0... 11 => println!("0 ... 11"),
59
+ LL | 0..= 11 => println!("0 ... 11"),
60
60
| ^^^^^^
61
61
62
62
error: aborting due to 5 previous errors
0 commit comments