1
- error: union expressions should have exactly one field
1
+ error[E0784] : union expressions should have exactly one field
2
2
--> $DIR/union-fields-2.rs:10:13
3
3
|
4
4
LL | let u = U {};
5
5
| ^
6
6
7
- error: union expressions should have exactly one field
7
+ error[E0784] : union expressions should have exactly one field
8
8
--> $DIR/union-fields-2.rs:12:13
9
9
|
10
10
LL | let u = U { a: 0, b: 1 };
@@ -18,13 +18,13 @@ LL | let u = U { a: 0, b: 1, c: 2 };
18
18
|
19
19
= note: available fields are: `a`, `b`
20
20
21
- error: union expressions should have exactly one field
21
+ error[E0784] : union expressions should have exactly one field
22
22
--> $DIR/union-fields-2.rs:13:13
23
23
|
24
24
LL | let u = U { a: 0, b: 1, c: 2 };
25
25
| ^
26
26
27
- error: union expressions should have exactly one field
27
+ error[E0784] : union expressions should have exactly one field
28
28
--> $DIR/union-fields-2.rs:15:13
29
29
|
30
30
LL | let u = U { ..u };
@@ -80,5 +80,5 @@ LL | let U { a, .. } = u;
80
80
81
81
error: aborting due to 13 previous errors
82
82
83
- Some errors have detailed explanations: E0026, E0436, E0560.
83
+ Some errors have detailed explanations: E0026, E0436, E0560, E0784 .
84
84
For more information about an error, try `rustc --explain E0026`.
0 commit comments