]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/inconsistent_struct_constructor.stderr
Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett
[rust.git] / src / tools / clippy / tests / ui / inconsistent_struct_constructor.stderr
1 error: struct constructor field order is inconsistent with struct definition field order
2   --> $DIR/inconsistent_struct_constructor.rs:33:9
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
9 error: struct constructor field order is inconsistent with struct definition field order
10   --> $DIR/inconsistent_struct_constructor.rs:55:9
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