Add test for #7829

This commit is contained in:
Michael Wright 2021-10-20 06:13:42 +02:00
parent 4679eb3a0d
commit c4d5471a45

View file

@ -100,6 +100,13 @@ fn overlapping() {
_ => (),
}
// Issue #7829
match 0 {
-1..=1 => (),
-2..=2 => (),
_ => (),
}
if let None = Some(42) {
// nothing
} else if let None = Some(42) {