@@ -2,73 +2,88 @@ error: multiple patterns overlap on their endpoints
2
2
--> $DIR/overlapping_range_endpoints.rs:15:22
3
3
|
4
4
LL | m!(0u8, 20..=30, 30..=40);
5
- | ------- ^^^^^^^ overlapping range endpoints
5
+ | ------- ^^^^^^^ ... with this range
6
6
| |
7
- | this range overlaps on `30_u8`
7
+ | this range overlaps on `30_u8`...
8
8
|
9
9
note: the lint level is defined here
10
10
--> $DIR/overlapping_range_endpoints.rs:2:9
11
11
|
12
12
LL | #![deny(overlapping_range_endpoints)]
13
13
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
+ = note: this is likely to be a mistake
14
15
15
16
error: multiple patterns overlap on their endpoints
16
17
--> $DIR/overlapping_range_endpoints.rs:16:22
17
18
|
18
19
LL | m!(0u8, 30..=40, 20..=30);
19
- | ------- ^^^^^^^ overlapping range endpoints
20
+ | ------- ^^^^^^^ ... with this range
20
21
| |
21
- | this range overlaps on `30_u8`
22
+ | this range overlaps on `30_u8`...
23
+ |
24
+ = note: this is likely to be a mistake
22
25
23
26
error: multiple patterns overlap on their endpoints
24
27
--> $DIR/overlapping_range_endpoints.rs:19:22
25
28
|
26
29
LL | m!(0u8, 20.. 30, 29..=40);
27
- | ------- ^^^^^^^ overlapping range endpoints
30
+ | ------- ^^^^^^^ ... with this range
28
31
| |
29
- | this range overlaps on `29_u8`
32
+ | this range overlaps on `29_u8`...
33
+ |
34
+ = note: this is likely to be a mistake
30
35
31
36
error: multiple patterns overlap on their endpoints
32
37
--> $DIR/overlapping_range_endpoints.rs:23:22
33
38
|
34
39
LL | m!(0u8, 20..=30, 30..=31);
35
- | ------- ^^^^^^^ overlapping range endpoints
40
+ | ------- ^^^^^^^ ... with this range
36
41
| |
37
- | this range overlaps on `30_u8`
42
+ | this range overlaps on `30_u8`...
43
+ |
44
+ = note: this is likely to be a mistake
38
45
39
46
error: multiple patterns overlap on their endpoints
40
47
--> $DIR/overlapping_range_endpoints.rs:27:22
41
48
|
42
49
LL | m!(0u8, 20..=30, 19..=20);
43
- | ------- ^^^^^^^ overlapping range endpoints
50
+ | ------- ^^^^^^^ ... with this range
44
51
| |
45
- | this range overlaps on `20_u8`
52
+ | this range overlaps on `20_u8`...
53
+ |
54
+ = note: this is likely to be a mistake
46
55
47
56
error: multiple patterns overlap on their endpoints
48
57
--> $DIR/overlapping_range_endpoints.rs:39:9
49
58
|
50
59
LL | 0..=10 => {}
51
- | ------ this range overlaps on `10_u8`
60
+ | ------ this range overlaps on `10_u8`...
52
61
LL | 20..=30 => {}
53
- | ------- this range overlaps on `20_u8`
62
+ | ------- this range overlaps on `20_u8`...
54
63
LL | 10..=20 => {}
55
- | ^^^^^^^ overlapping range endpoints
64
+ | ^^^^^^^ ... with this range
65
+ |
66
+ = note: this is likely to be a mistake
56
67
57
68
error: multiple patterns overlap on their endpoints
58
69
--> $DIR/overlapping_range_endpoints.rs:50:16
59
70
|
60
71
LL | (true, 0..=10) => {}
61
- | ------ this range overlaps on `10_u8`
72
+ | ------ this range overlaps on `10_u8`...
62
73
LL | (true, 10..20) => {}
63
- | ^^^^^^ overlapping range endpoints
74
+ | ^^^^^^ ... with this range
75
+ |
76
+ = note: this is likely to be a mistake
64
77
65
78
error: multiple patterns overlap on their endpoints
66
79
--> $DIR/overlapping_range_endpoints.rs:56:14
67
80
|
68
81
LL | Some(0..=10) => {}
69
- | ------ this range overlaps on `10_u8`
82
+ | ------ this range overlaps on `10_u8`...
70
83
LL | Some(10..20) => {}
71
- | ^^^^^^ overlapping range endpoints
84
+ | ^^^^^^ ... with this range
85
+ |
86
+ = note: this is likely to be a mistake
72
87
73
88
error: aborting due to 8 previous errors
74
89
0 commit comments