Comment out half-open patterns' tests
This commit is contained in:
parent
3bdf404076
commit
11fb749a96
@ -57,6 +57,8 @@ fn overlapping() {
|
||||
_ => (),
|
||||
}
|
||||
|
||||
/*
|
||||
// FIXME(JohnTitor): uncomment this once rustfmt knows half-open patterns
|
||||
match 42 {
|
||||
0.. => println!("0 .. 42"),
|
||||
3.. => println!("3 .. 42"),
|
||||
@ -68,6 +70,7 @@ fn overlapping() {
|
||||
..26 => println!("0 .. 26"),
|
||||
_ => (),
|
||||
}
|
||||
*/
|
||||
|
||||
if let None = Some(42) {
|
||||
// nothing
|
||||
|
@ -59,29 +59,5 @@ note: overlaps with this
|
||||
LL | 0..=11 => println!("0 ... 11"),
|
||||
| ^^^^^^
|
||||
|
||||
error: some ranges overlap
|
||||
--> $DIR/match_overlapping_arm.rs:61:9
|
||||
|
|
||||
LL | 0.. => println!("0 .. 42"),
|
||||
| ^^^
|
||||
|
|
||||
note: overlaps with this
|
||||
--> $DIR/match_overlapping_arm.rs:62:9
|
||||
|
|
||||
LL | 3.. => println!("3 .. 42"),
|
||||
| ^^^
|
||||
|
||||
error: some ranges overlap
|
||||
--> $DIR/match_overlapping_arm.rs:67:9
|
||||
|
|
||||
LL | ..=23 => println!("0 ... 23"),
|
||||
| ^^^^^
|
||||
|
|
||||
note: overlaps with this
|
||||
--> $DIR/match_overlapping_arm.rs:68:9
|
||||
|
|
||||
LL | ..26 => println!("0 .. 26"),
|
||||
| ^^^^
|
||||
|
||||
error: aborting due to 7 previous errors
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user