diff --git a/tests/ui/match_overlapping_arm.rs b/tests/ui/match_overlapping_arm.rs index ce7761119cbf..97789bb766f8 100644 --- a/tests/ui/match_overlapping_arm.rs +++ b/tests/ui/match_overlapping_arm.rs @@ -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 diff --git a/tests/ui/match_overlapping_arm.stderr b/tests/ui/match_overlapping_arm.stderr index 32dcefa86d88..eb20d5405a95 100644 --- a/tests/ui/match_overlapping_arm.stderr +++ b/tests/ui/match_overlapping_arm.stderr @@ -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