about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Wright <mikerite@lavabit.com>2021-10-20 06:13:42 +0200
committerMichael Wright <mikerite@lavabit.com>2021-10-20 06:13:42 +0200
commitc4d5471a45dbdddccb74bb505864cab284df21fd (patch)
treebeeb735119b009e07da58e29af72627b512a9b6f
parent4679eb3a0d09219b4bd815c636eb55e5b05c5a5e (diff)
downloadrust-c4d5471a45dbdddccb74bb505864cab284df21fd.tar.gz
rust-c4d5471a45dbdddccb74bb505864cab284df21fd.zip
Add test for #7829
-rw-r--r--tests/ui/match_overlapping_arm.rs7
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) {