]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
cdc7bbd5 1error: struct constructor field order is inconsistent with struct definition field order
353b0b11 2 --> $DIR/inconsistent_struct_constructor.rs:29:9
f20569fa
XL
3 |
4LL | 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 9error: struct constructor field order is inconsistent with struct definition field order
353b0b11 10 --> $DIR/inconsistent_struct_constructor.rs:56:9
f20569fa
XL
11 |
12LL | / Foo {
13LL | | z,
14LL | | x,
15LL | | ..Default::default()
16LL | | };
17 | |_________^ help: try: `Foo { x, z, ..Default::default() }`
18
19error: aborting due to 2 previous errors
20