mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-29 22:43:41 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
63 lines
1.4 KiB
Text
63 lines
1.4 KiB
Text
error: some ranges overlap
|
|
--> $DIR/match_overlapping_arm.rs:11:9
|
|
|
|
|
LL | 0...10 => println!("0 ... 10"),
|
|
| ^^^^^^
|
|
|
|
|
= note: `-D clippy::match-overlapping-arm` implied by `-D warnings`
|
|
note: overlaps with this
|
|
--> $DIR/match_overlapping_arm.rs:12:9
|
|
|
|
|
LL | 0...11 => println!("0 ... 11"),
|
|
| ^^^^^^
|
|
|
|
error: some ranges overlap
|
|
--> $DIR/match_overlapping_arm.rs:17:9
|
|
|
|
|
LL | 0...5 => println!("0 ... 5"),
|
|
| ^^^^^
|
|
|
|
|
note: overlaps with this
|
|
--> $DIR/match_overlapping_arm.rs:19:9
|
|
|
|
|
LL | FOO...11 => println!("0 ... 11"),
|
|
| ^^^^^^^^
|
|
|
|
error: some ranges overlap
|
|
--> $DIR/match_overlapping_arm.rs:25:9
|
|
|
|
|
LL | 0...5 => println!("0 ... 5"),
|
|
| ^^^^^
|
|
|
|
|
note: overlaps with this
|
|
--> $DIR/match_overlapping_arm.rs:24:9
|
|
|
|
|
LL | 2 => println!("2"),
|
|
| ^
|
|
|
|
error: some ranges overlap
|
|
--> $DIR/match_overlapping_arm.rs:31:9
|
|
|
|
|
LL | 0...2 => println!("0 ... 2"),
|
|
| ^^^^^
|
|
|
|
|
note: overlaps with this
|
|
--> $DIR/match_overlapping_arm.rs:30:9
|
|
|
|
|
LL | 2 => println!("2"),
|
|
| ^
|
|
|
|
error: some ranges overlap
|
|
--> $DIR/match_overlapping_arm.rs:54:9
|
|
|
|
|
LL | 0..11 => println!("0 .. 11"),
|
|
| ^^^^^
|
|
|
|
|
note: overlaps with this
|
|
--> $DIR/match_overlapping_arm.rs:55:9
|
|
|
|
|
LL | 0...11 => println!("0 ... 11"),
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 5 previous errors
|
|
|