use duplicate::*; struct Example { one: u8, two: u8, } impl Example { fn inline_new() -> Self { Example { one: 0, two: 0 } } fn attr_new() -> Self { Example { one: 0, two: 0 } } } struct StructName1(u8, u16); struct TypeName21(u8, u16); impl std::error::Error for () {} impl std::error::Error for () {} impl std::error::Error for () {} impl std::error::Error for () {} trait SomeType {} impl SomeType for () {} impl SomeType for () {} impl SomeType for () {} impl SomeType for () {} impl SomeType for () {} impl SomeType for () {} impl SomeType for () {} impl SomeType for () {} struct Example2 { one: u8, } const SOME_STRUCT1: Example2 = Example2 { one: 0 }; const SOME_STRUCT2: Example2 = Example2 { one: 1 }; const SOME_STRUCT3: Example2 = Example2 { one: 2 };