Skip to content

Commit bf5c64a

Browse files
Clean up E0062 long explanation
1 parent 4eee955 commit bf5c64a

File tree

1 file changed

+6
-4
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+6
-4
lines changed

src/librustc_error_codes/error_codes/E0062.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
This error indicates that during an attempt to build a struct or struct-like
2-
enum variant, one of the fields was specified more than once. Erroneous code
3-
example:
1+
A struct's or struct-like enum variant's field was specified more than once.
2+
3+
Erroneous code example:
44

55
```compile_fail,E0062
66
struct Foo {
@@ -15,7 +15,9 @@ fn main() {
1515
}
1616
```
1717

18-
Each field should be specified exactly one time. Example:
18+
This error indicates that during an attempt to build a struct or struct-like
19+
enum variant, one of the fields was specified more than once. Each field should
20+
be specified exactly one time. Example:
1921

2022
```
2123
struct Foo {

0 commit comments

Comments
 (0)