]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/manual_let_else_match.rs
Merge from rustc
[rust.git] / src / tools / clippy / tests / ui / manual_let_else_match.rs
index 93c86ca24fea3a079c80c8ae7bb32204b29f6be3..28caed9d79df244f074eab27b108794139ca3ac2 100644 (file)
@@ -64,6 +64,13 @@ fn fire() {
         Ok(v) => v,
         Err(()) => return,
     };
+
+    let f = Variant::Bar(1);
+
+    let _value = match f {
+        Variant::Bar(_) | Variant::Baz(_) => (),
+        _ => return,
+    };
 }
 
 fn not_fire() {