3 #![warn(clippy::inconsistent_struct_constructor)]
4 #![allow(clippy::redundant_field_names)]
5 #![allow(clippy::unnecessary_operation)]
6 #![allow(clippy::no_effect)]
27 // Shoule NOT lint because the order is the same as in the definition.
30 // Should NOT lint because z is not a shorthand init.
43 Foo { x, z, ..Default::default() };
45 // Should NOT lint because the order is consistent with the definition.
52 // Should NOT lint because z is not a shorthand init.