Skip to content

Commit 87f0237

Browse files
author
Nick Hamann
committed
Add long diagnostics for E0062 and E0063
1 parent dc630d0 commit 87f0237

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
@@ -34,6 +34,16 @@ let x_is_nonzero = x as bool;
3434
```
3535
"##,
3636

37+
E0062: r##"
38+
This error indicates that during an attempt to build a struct or struct-like
39+
enum variant, one of the fields was specified more than once.
40+
"##,
41+
42+
E0063: r##"
43+
This error indicates that during an attempt to build a struct or struct-like
44+
enum variant, one of the fields was not provided.
45+
"##,
46+
3747
E0081: r##"
3848
Enum discriminants are used to differentiate enum variants stored in memory.
3949
This error indicates that the same value was used for two or more variants,
@@ -136,8 +146,6 @@ register_diagnostics! {
136146
E0059,
137147
E0060,
138148
E0061,
139-
E0062,
140-
E0063,
141149
E0066,
142150
E0067,
143151
E0068,

0 commit comments

Comments
 (0)