Skip to content

Commit c8cf370

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_typeck/diagnostics.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ register_long_diagnostics! {
1414

1515
E0062: r##"
1616
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.
17+
enum variant, one of the fields was specified more than once. Each field should
18+
be specified exactly one time.
1819
"##,
1920

2021
E0063: r##"
2122
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+
enum variant, one of the fields was not provided. Each field should be specified
24+
exactly once.
2325
"##,
2426

2527
E0081: r##"

0 commit comments

Comments
 (0)