diff options
| author | Michael Wright <mikerite@lavabit.com> | 2021-10-20 06:13:42 +0200 |
|---|---|---|
| committer | Michael Wright <mikerite@lavabit.com> | 2021-10-20 06:13:42 +0200 |
| commit | c4d5471a45dbdddccb74bb505864cab284df21fd (patch) | |
| tree | beeb735119b009e07da58e29af72627b512a9b6f | |
| parent | 4679eb3a0d09219b4bd815c636eb55e5b05c5a5e (diff) | |
| download | rust-c4d5471a45dbdddccb74bb505864cab284df21fd.tar.gz rust-c4d5471a45dbdddccb74bb505864cab284df21fd.zip | |
Add test for #7829
| -rw-r--r-- | tests/ui/match_overlapping_arm.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/match_overlapping_arm.rs b/tests/ui/match_overlapping_arm.rs index ff91c4498ec..845986a4ead 100644 --- a/tests/ui/match_overlapping_arm.rs +++ b/tests/ui/match_overlapping_arm.rs @@ -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) { |
