]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/rfc-2294-if-let-guard/run-pass.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / rfc-2294-if-let-guard / run-pass.rs
index 3da57989df2b5820db159081b68af6c9cf7e22e5..a303a0d1fcee3052a2b05133da5e70c540b9a9de 100644 (file)
@@ -30,4 +30,11 @@ fn main() {
         Some(x) if let Foo::Qux(y) = qux(x) => assert_eq!(y, 84),
         _ => panic!(),
     }
+
+    // issue #88015
+    #[allow(irrefutable_let_patterns)]
+    match () {
+        () | () if let x = 42 => assert_eq!(x, 42),
+        _ => panic!()
+    }
 }