]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 | 1 | error: struct constructor field order is inconsistent with struct definition field order |
353b0b11 | 2 | --> $DIR/inconsistent_struct_constructor.rs:29:9 |
f20569fa XL |
3 | | |
4 | LL | Foo { y, x, z }; | |
5 | | ^^^^^^^^^^^^^^^ help: try: `Foo { x, y, z }` | |
6 | | | |
7 | = note: `-D clippy::inconsistent-struct-constructor` implied by `-D warnings` | |
8 | ||
cdc7bbd5 | 9 | error: struct constructor field order is inconsistent with struct definition field order |
353b0b11 | 10 | --> $DIR/inconsistent_struct_constructor.rs:56:9 |
f20569fa XL |
11 | | |
12 | LL | / Foo { | |
13 | LL | | z, | |
14 | LL | | x, | |
15 | LL | | ..Default::default() | |
16 | LL | | }; | |
17 | | |_________^ help: try: `Foo { x, z, ..Default::default() }` | |
18 | ||
19 | error: aborting due to 2 previous errors | |
20 |