]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/match_wildcard_for_single_variants.fixed
Fix type checks for `manual_str_repeat`
[rust.git] / tests / ui / match_wildcard_for_single_variants.fixed
index d99f9af3faf5b73df4884fb0296c882683787502..31b743f7a18d73f53457e986d5572269a2746385 100644 (file)
@@ -108,4 +108,20 @@ fn main() {
         Bar::B => (),
         _ => (),
     };
+
+    //#6984
+    {
+        #![allow(clippy::manual_non_exhaustive)]
+        pub enum Enum {
+            A,
+            B,
+            #[doc(hidden)]
+            __Private,
+        }
+        match Enum::A {
+            Enum::A => (),
+            Enum::B => (),
+            _ => (),
+        }
+    }
 }