Skip to content

Commit c01d5bf

Browse files
author
Nick Hamann
committed
Add long diagnostics for E0062 and E0063
1 parent a39d4fc commit c01d5bf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212

1313
register_long_diagnostics! {
1414

15+
E0062: r##"
16+
This error indicates that during an attempt to build a struct or struct-like
17+
enum variant, one of the fields was specified more than once.
18+
"##,
19+
20+
E0063: r##"
21+
This error indicates that during an attempt to build a struct or struct-like
22+
enum variant, one of the fields was not provided.
23+
"##,
24+
1525
E0081: r##"
1626
Enum discriminants are used to differentiate enum variants stored in memory.
1727
This error indicates that the same value was used for two or more variants,
@@ -116,8 +126,6 @@ register_diagnostics! {
116126
E0059,
117127
E0060,
118128
E0061,
119-
E0062,
120-
E0063,
121129
E0066,
122130
E0067,
123131
E0068,

0 commit comments

Comments
 (0)