summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/inconsistent_struct_constructor.stderr
blob: c90189e964f09e68cea01babbb5d25ba03689909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: struct constructor field order is inconsistent with struct definition field order
  --> $DIR/inconsistent_struct_constructor.rs:33:9
   |
LL |         Foo { y, x, z };
   |         ^^^^^^^^^^^^^^^ help: try: `Foo { x, y, z }`
   |
   = note: `-D clippy::inconsistent-struct-constructor` implied by `-D warnings`

error: struct constructor field order is inconsistent with struct definition field order
  --> $DIR/inconsistent_struct_constructor.rs:55:9
   |
LL | /         Foo {
LL | |             z,
LL | |             x,
LL | |             ..Default::default()
LL | |         };
   | |_________^ help: try: `Foo { x, z, ..Default::default() }`

error: aborting due to 2 previous errors