]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/single_match.rs
Auto merge of #84620 - Dylan-DPC:rollup-wkv97im, r=Dylan-DPC
[rust.git] / src / tools / clippy / tests / ui / single_match.rs
index ca884b41c45792ae0a6a16d39802b06b3c6fb070..b1819e08d53bf5dc9054e41cde25c580077082c5 100644 (file)
@@ -135,6 +135,14 @@ impl Eq for Bar {}
         Bar::A => println!(),
         _ => (),
     }
+
+    // issue #7038
+    struct X;
+    let x = Some(X);
+    match x {
+        None => println!(),
+        _ => (),
+    };
 }
 
 macro_rules! single_match {