]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/inconsistent_struct_constructor.stderr
Merge 1.70 into proxmox/bookworm
[rustc.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:29: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:56: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