3 #![deny(clippy::exhaustive_enums, clippy::exhaustive_structs)]
22 pub enum ExhaustiveWithAttrs {
29 // no warning, already non_exhaustive
31 pub enum NonExhaustive {
38 // no warning, private
39 enum ExhaustivePrivate {
46 // no warning, private
48 enum NonExhaustivePrivate {
58 pub struct Exhaustive {
63 // no warning, already non_exhaustive
65 pub struct NonExhaustive {
70 // no warning, private fields
71 pub struct ExhaustivePrivateFieldTuple(u8);
73 // no warning, private fields
74 pub struct ExhaustivePrivateField {
79 // no warning, private
80 struct ExhaustivePrivate {
85 // no warning, private
87 struct NonExhaustivePrivate {