3 #![warn(clippy::match_wildcard_for_single_variants)]
27 let color = Color::Red;
29 // check exhaustive bindings
33 Color::Rgb(_r, _g, _b) => {},
37 // check exhaustive wild
47 Color::Rgb(_, _, _) => {},
51 // shouldn't lint as there is one missing variant
52 // and one that isn't exhaustively covered
56 Color::Rgb(255, _, _) => {},