2020-10-22 18:34:00 +01:00
|
|
|
error: multiple patterns overlap on their endpoints
|
2020-11-20 19:03:56 +00:00
|
|
|
--> $DIR/overlapping_range_endpoints.rs:15:22
|
|
|
|
|
|
|
|
|
LL | m!(0u8, 20..=30, 30..=40);
|
2020-10-22 19:32:46 +01:00
|
|
|
| ------- ^^^^^^^ ... with this range
|
2020-11-20 19:03:56 +00:00
|
|
|
| |
|
2020-10-22 19:32:46 +01:00
|
|
|
| this range overlaps on `30_u8`...
|
2020-11-20 19:03:56 +00:00
|
|
|
|
|
2022-09-18 19:55:36 +04:00
|
|
|
= note: you likely meant to write mutually exclusive ranges
|
2020-11-20 19:03:56 +00:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/overlapping_range_endpoints.rs:2:9
|
|
|
|
|
|
2020-10-22 18:34:00 +01:00
|
|
|
LL | #![deny(overlapping_range_endpoints)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-11-20 19:03:56 +00:00
|
|
|
|
2020-10-22 18:34:00 +01:00
|
|
|
error: multiple patterns overlap on their endpoints
|
2020-11-20 19:03:56 +00:00
|
|
|
--> $DIR/overlapping_range_endpoints.rs:16:22
|
|
|
|
|
|
|
|
|
LL | m!(0u8, 30..=40, 20..=30);
|
2020-10-22 19:32:46 +01:00
|
|
|
| ------- ^^^^^^^ ... with this range
|
2020-11-20 19:03:56 +00:00
|
|
|
| |
|
2020-10-22 19:32:46 +01:00
|
|
|
| this range overlaps on `30_u8`...
|
|
|
|
|
|
2020-12-19 17:48:31 +00:00
|
|
|
= note: you likely meant to write mutually exclusive ranges
|
2020-11-20 19:03:56 +00:00
|
|
|
|
2020-10-22 18:34:00 +01:00
|
|
|
error: multiple patterns overlap on their endpoints
|
2020-11-20 19:03:56 +00:00
|
|
|
--> $DIR/overlapping_range_endpoints.rs:19:22
|
|
|
|
|
|
|
|
|
LL | m!(0u8, 20.. 30, 29..=40);
|
2020-10-22 19:32:46 +01:00
|
|
|
| ------- ^^^^^^^ ... with this range
|
2020-11-20 19:03:56 +00:00
|
|
|
| |
|
2020-10-22 19:32:46 +01:00
|
|
|
| this range overlaps on `29_u8`...
|
|
|
|
|
|
2020-12-19 17:48:31 +00:00
|
|
|
= note: you likely meant to write mutually exclusive ranges
|
2020-11-20 19:03:56 +00:00
|
|
|
|
2020-10-22 18:34:00 +01:00
|
|
|
error: multiple patterns overlap on their endpoints
|
2020-11-20 19:03:56 +00:00
|
|
|
--> $DIR/overlapping_range_endpoints.rs:23:22
|
|
|
|
|
|
|
|
|
LL | m!(0u8, 20..=30, 30..=31);
|
2020-10-22 19:32:46 +01:00
|
|
|
| ------- ^^^^^^^ ... with this range
|
2020-11-20 19:03:56 +00:00
|
|
|
| |
|
2020-10-22 19:32:46 +01:00
|
|
|
| this range overlaps on `30_u8`...
|
|
|
|
|
|
2020-12-19 17:48:31 +00:00
|
|
|
= note: you likely meant to write mutually exclusive ranges
|
2020-11-20 19:03:56 +00:00
|
|
|
|
2020-10-22 18:34:00 +01:00
|
|
|
error: multiple patterns overlap on their endpoints
|
2020-11-20 19:03:56 +00:00
|
|
|
--> $DIR/overlapping_range_endpoints.rs:27:22
|
|
|
|
|
|
|
|
|
LL | m!(0u8, 20..=30, 19..=20);
|
2020-10-22 19:32:46 +01:00
|
|
|
| ------- ^^^^^^^ ... with this range
|
2020-11-20 19:03:56 +00:00
|
|
|
| |
|
2020-10-22 19:32:46 +01:00
|
|
|
| this range overlaps on `20_u8`...
|
|
|
|
|
|
2020-12-19 17:48:31 +00:00
|
|
|
= note: you likely meant to write mutually exclusive ranges
|
2020-11-20 19:03:56 +00:00
|
|
|
|
2020-10-22 18:34:00 +01:00
|
|
|
error: multiple patterns overlap on their endpoints
|
2020-11-22 21:58:41 +00:00
|
|
|
--> $DIR/overlapping_range_endpoints.rs:39:9
|
|
|
|
|
|
|
|
|
LL | 0..=10 => {}
|
2020-10-22 19:32:46 +01:00
|
|
|
| ------ this range overlaps on `10_u8`...
|
2020-11-22 21:58:41 +00:00
|
|
|
LL | 20..=30 => {}
|
2020-10-22 19:32:46 +01:00
|
|
|
| ------- this range overlaps on `20_u8`...
|
2020-11-22 21:58:41 +00:00
|
|
|
LL | 10..=20 => {}
|
2020-10-22 19:32:46 +01:00
|
|
|
| ^^^^^^^ ... with this range
|
|
|
|
|
|
2020-12-19 17:48:31 +00:00
|
|
|
= note: you likely meant to write mutually exclusive ranges
|
2020-11-22 21:58:41 +00:00
|
|
|
|
2020-10-22 18:34:00 +01:00
|
|
|
error: multiple patterns overlap on their endpoints
|
2020-11-22 21:58:41 +00:00
|
|
|
--> $DIR/overlapping_range_endpoints.rs:50:16
|
2020-11-20 19:03:56 +00:00
|
|
|
|
|
|
|
|
LL | (true, 0..=10) => {}
|
2020-10-22 19:32:46 +01:00
|
|
|
| ------ this range overlaps on `10_u8`...
|
2020-11-20 19:03:56 +00:00
|
|
|
LL | (true, 10..20) => {}
|
2020-10-22 19:32:46 +01:00
|
|
|
| ^^^^^^ ... with this range
|
|
|
|
|
|
2020-12-19 17:48:31 +00:00
|
|
|
= note: you likely meant to write mutually exclusive ranges
|
2020-11-20 19:03:56 +00:00
|
|
|
|
2020-10-22 18:34:00 +01:00
|
|
|
error: multiple patterns overlap on their endpoints
|
2020-11-22 21:58:41 +00:00
|
|
|
--> $DIR/overlapping_range_endpoints.rs:56:14
|
2020-11-20 19:03:56 +00:00
|
|
|
|
|
|
|
|
LL | Some(0..=10) => {}
|
2020-10-22 19:32:46 +01:00
|
|
|
| ------ this range overlaps on `10_u8`...
|
2020-11-20 19:03:56 +00:00
|
|
|
LL | Some(10..20) => {}
|
2020-10-22 19:32:46 +01:00
|
|
|
| ^^^^^^ ... with this range
|
|
|
|
|
|
2020-12-19 17:48:31 +00:00
|
|
|
= note: you likely meant to write mutually exclusive ranges
|
2020-11-20 19:03:56 +00:00
|
|
|
|
2020-10-22 19:25:55 +01:00
|
|
|
error: aborting due to 8 previous errors
|
2020-11-20 19:03:56 +00:00
|
|
|
|