]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/inconsistent_struct_constructor.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / inconsistent_struct_constructor.stderr
index d7abe44f2540834bb8dc842af33f3eefb341dc26..ef308dedb1661c331703d68d9ab973477f473d51 100644 (file)
@@ -1,13 +1,13 @@
-error: inconsistent struct constructor
-  --> $DIR/inconsistent_struct_constructor.rs:25:9
+error: struct constructor field order is inconsistent with struct definition field order
+  --> $DIR/inconsistent_struct_constructor.rs:34:9
    |
 LL |         Foo { y, x, z };
    |         ^^^^^^^^^^^^^^^ help: try: `Foo { x, y, z }`
    |
    = note: `-D clippy::inconsistent-struct-constructor` implied by `-D warnings`
 
-error: inconsistent struct constructor
-  --> $DIR/inconsistent_struct_constructor.rs:43:9
+error: struct constructor field order is inconsistent with struct definition field order
+  --> $DIR/inconsistent_struct_constructor.rs:56:9
    |
 LL | /         Foo {
 LL | |             z,