3 #![warn(clippy::match_wildcard_for_single_variants)]
37 let color = Color::Red;
39 // check exhaustive bindings
43 Color::Rgb(_r, _g, _b) => {},
47 // check exhaustive wild
57 Color::Rgb(_, _, _) => {},
61 // shouldn't lint as there is one missing variant
62 // and one that isn't exhaustively covered
66 Color::Rgb(255, _, _) => {},
70 // References shouldn't change anything
74 &Color::Rgb(..) => (),
114 #![allow(clippy::manual_non_exhaustive)]