3 #![deny(clippy::exhaustive_enums, clippy::exhaustive_structs)]
20 pub enum ExhaustiveWithAttrs {
27 // no warning, already non_exhaustive
29 pub enum NonExhaustive {
36 // no warning, private
37 enum ExhaustivePrivate {
44 // no warning, private
46 enum NonExhaustivePrivate {
55 pub struct Exhaustive {
60 // no warning, already non_exhaustive
62 pub struct NonExhaustive {
67 // no warning, private fields
68 pub struct ExhaustivePrivateFieldTuple(u8);
70 // no warning, private fields
71 pub struct ExhaustivePrivateField {
76 // no warning, private
77 struct ExhaustivePrivate {
82 // no warning, private
84 struct NonExhaustivePrivate {