2 #![warn(clippy::empty_structs_with_brackets)]
5 pub struct MyEmptyStruct {} // should trigger lint
6 struct MyEmptyTupleStruct(); // should trigger lint
8 // should not trigger lint
10 #[cfg(feature = "thisisneverenabled")]
14 // should not trigger lint
15 struct MyCfgTupleStruct(#[cfg(feature = "thisisneverenabled")] u8);
17 // should not trigger lint
21 struct MyTupleStruct(usize, String); // should not trigger lint
22 struct MySingleTupleStruct(usize); // should not trigger lint
23 struct MyUnitLikeStruct; // should not trigger lint