Skip to content

Commit df64e05

Browse files
author
Nick Hamann
committed
Change E0062 and E0063 to say each field should be specified once.
1 parent f736468 commit df64e05

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ let x_is_nonzero = x as bool;
3636

3737
E0062: r##"
3838
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.
39+
enum variant, one of the fields was specified more than once. Each field should
40+
be specified exactly one time.
4041
"##,
4142

4243
E0063: r##"
4344
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+
enum variant, one of the fields was not provided. Each field should be specified
46+
exactly once.
4547
"##,
4648

4749
E0081: r##"

0 commit comments

Comments
 (0)