1- error: union expressions should have exactly one field
1+ error[E0784] : union expressions should have exactly one field
22 --> $DIR/union-fields-2.rs:10:13
33 |
44LL | let u = U {};
55 | ^
66
7- error: union expressions should have exactly one field
7+ error[E0784] : union expressions should have exactly one field
88 --> $DIR/union-fields-2.rs:12:13
99 |
1010LL | let u = U { a: 0, b: 1 };
@@ -18,13 +18,13 @@ LL | let u = U { a: 0, b: 1, c: 2 };
1818 |
1919 = note: available fields are: `a`, `b`
2020
21- error: union expressions should have exactly one field
21+ error[E0784] : union expressions should have exactly one field
2222 --> $DIR/union-fields-2.rs:13:13
2323 |
2424LL | let u = U { a: 0, b: 1, c: 2 };
2525 | ^
2626
27- error: union expressions should have exactly one field
27+ error[E0784] : union expressions should have exactly one field
2828 --> $DIR/union-fields-2.rs:15:13
2929 |
3030LL | let u = U { ..u };
@@ -80,5 +80,5 @@ LL | let U { a, .. } = u;
8080
8181error: aborting due to 13 previous errors
8282
83- Some errors have detailed explanations: E0026, E0436, E0560.
83+ Some errors have detailed explanations: E0026, E0436, E0560, E0784 .
8484For more information about an error, try `rustc --explain E0026`.
0 commit comments