2018-10-30 15:36:52 -05:00
|
|
|
error: some ranges overlap
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:11:9
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
2021-10-21 06:11:36 -05:00
|
|
|
LL | 0..=10 => println!("0..=10"),
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^^^^^^
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
|
|
|
note: overlaps with this
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:13:9
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
2021-10-21 06:11:36 -05:00
|
|
|
LL | 0..=11 => println!("0..=11"),
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^^^^^^
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::match-overlapping-arm` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::match_overlapping_arm)]`
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
|
|
error: some ranges overlap
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:18:9
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
2021-10-21 06:11:36 -05:00
|
|
|
LL | 0..=5 => println!("0..=5"),
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^^^^^
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
|
|
|
note: overlaps with this
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:21:9
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
2021-10-21 06:11:36 -05:00
|
|
|
LL | FOO..=11 => println!("FOO..=11"),
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^^^^^^^^
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
|
|
error: some ranges overlap
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:56:9
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
2021-10-21 06:11:36 -05:00
|
|
|
LL | 0..11 => println!("0..11"),
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^^^^^
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
|
|
|
note: overlaps with this
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:58:9
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
2021-10-21 06:11:36 -05:00
|
|
|
LL | 0..=11 => println!("0..=11"),
|
2021-02-02 22:43:30 -06:00
|
|
|
| ^^^^^^
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
|
|
error: some ranges overlap
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:82:9
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
2021-10-21 06:11:36 -05:00
|
|
|
LL | 0..=10 => println!("0..=10"),
|
2021-02-02 22:43:30 -06:00
|
|
|
| ^^^^^^
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
|
|
|
note: overlaps with this
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:81:9
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
2021-10-21 06:11:36 -05:00
|
|
|
LL | 5..14 => println!("5..14"),
|
2021-02-02 22:43:30 -06:00
|
|
|
| ^^^^^
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
|
|
error: some ranges overlap
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:88:9
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
2021-10-21 06:11:36 -05:00
|
|
|
LL | 0..7 => println!("0..7"),
|
2021-02-02 22:43:30 -06:00
|
|
|
| ^^^^
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
|
|
|
note: overlaps with this
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:90:9
|
2018-10-30 15:36:52 -05:00
|
|
|
|
|
2021-10-21 06:11:36 -05:00
|
|
|
LL | 0..=10 => println!("0..=10"),
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^^^^^^
|
2018-10-30 15:36:52 -05:00
|
|
|
|
2021-10-21 06:11:36 -05:00
|
|
|
error: some ranges overlap
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:101:9
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | ..=23 => println!("..=23"),
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
note: overlaps with this
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:103:9
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | ..26 => println!("..26"),
|
|
|
|
| ^^^^
|
|
|
|
|
2021-12-06 05:33:31 -06:00
|
|
|
error: some ranges overlap
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:111:9
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
LL | 21..=30 => (),
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
note: overlaps with this
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:113:9
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
LL | 21..=40 => (),
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: some ranges overlap
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:126:9
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
LL | 0..=0x0000_0000_0000_00ff => (),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: overlaps with this
|
2024-04-27 23:39:32 -05:00
|
|
|
--> tests/ui/match_overlapping_arm.rs:128:9
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
LL | 0..=0x0000_0000_0000_ffff => (),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2018-10-30 15:36:52 -05:00
|
|
|
|