Skip to content

Commit e500cd2

Browse files
Update UI tests
1 parent c364a4e commit e500cd2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/test/ui/union/union-fields-2.mirunsafeck.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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
|
44
LL | 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
|
1010
LL | 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
|
2424
LL | 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
|
3030
LL | let u = U { ..u };
@@ -80,5 +80,5 @@ LL | let U { a, .. } = u;
8080

8181
error: 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.
8484
For more information about an error, try `rustc --explain E0026`.

src/test/ui/union/union-fields-2.thirunsafeck.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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
|
44
LL | 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
|
1010
LL | 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
|
2424
LL | 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
|
3030
LL | let u = U { ..u };
@@ -80,5 +80,5 @@ LL | let U { a, .. } = u;
8080

8181
error: 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.
8484
For more information about an error, try `rustc --explain E0026`.

0 commit comments

Comments
 (0)