about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/inconsistent_struct_constructor.stderr
blob: 2f48a011d26f3f8e94fa15a09066831665ccad3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
error: struct constructor field order is inconsistent with struct definition field order
  --> tests/ui/inconsistent_struct_constructor.rs:36:15
   |
LL |         Foo { y, x, z };
   |               ^^^^^^^ help: try: `x, y, z`
   |
   = note: `-D clippy::inconsistent-struct-constructor` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::inconsistent_struct_constructor)]`

error: struct constructor field order is inconsistent with struct definition field order
  --> tests/ui/inconsistent_struct_constructor.rs:65:13
   |
LL | /             z,
LL | |             x,
   | |_____________^
   |
help: try
   |
LL ~             x,
LL ~             z,
   |

error: aborting due to 2 previous errors