2 Checks for struct constructors where all fields are shorthand and
3 the order of the field init shorthand in the constructor is inconsistent
4 with the order in the struct definition.
7 Since the order of fields in a constructor doesn't affect the
8 resulted instance as the below example indicates,
11 #[derive(Debug, PartialEq, Eq)]
19 // This assertion never fails:
20 assert_eq!(Foo { x, y }, Foo { y, x });
23 inconsistent order can be confusing and decreases readability and consistency.