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