]> git.lizzy.rs Git - rust.git/blob - tests/ui/match_wildcard_for_single_variants.fixed
Add the redundant_wildcard_enum_match lint
[rust.git] / tests / ui / match_wildcard_for_single_variants.fixed
1 // run-rustfix
2
3 #![warn(clippy::match_wildcard_for_single_variants)]
4 #![allow(dead_code)]
5
6 enum Foo {
7     A,
8     B,
9     C,
10 }
11
12 fn main() {
13     match Foo::A {
14         Foo::A => {},
15         Foo::B => {},
16         Foo::C => {},
17     }
18 }