Skip to content

Commit c4d5471

Browse files
author
Michael Wright
committed
Add test for #7829
1 parent 4679eb3 commit c4d5471

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/ui/match_overlapping_arm.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ fn overlapping() {
100100
_ => (),
101101
}
102102

103+
// Issue #7829
104+
match 0 {
105+
-1..=1 => (),
106+
-2..=2 => (),
107+
_ => (),
108+
}
109+
103110
if let None = Some(42) {
104111
// nothing
105112
} else if let None = Some(42) {

0 commit comments

Comments
 (0)