]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/match_expr_like_matches_macro.rs
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
[rust.git] / src / tools / clippy / tests / ui / match_expr_like_matches_macro.rs
index 2deeb84e74138151920ca91279cef789ebad2e79..750f69fa5088f6fa45898030bfca0d56ee486a81 100644 (file)
@@ -181,4 +181,19 @@ fn fun(_val: Option<S>) {}
         };
         fun(val);
     }
+
+    {
+        enum E {
+            A,
+            B,
+            C,
+        }
+
+        let _ = match E::A {
+            E::B => true,
+            #[cfg(feature = "foo")]
+            E::A => true,
+            _ => false,
+        };
+    }
 }