]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/single_match.rs
Rollup merge of #92849 - flip1995:clippyup, r=Manishearth
[rust.git] / 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 {