diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-11-25 13:31:05 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-11-25 13:31:05 +0100 |
| commit | bf5c64abff4994c2743b675d1d39c57571155a53 (patch) | |
| tree | 5db1056e0eec714d95cea05a42dc67458bda8066 /src/librustc_error_codes/error_codes | |
| parent | 4eee955502558a049df75b4313a60cf57c885aa6 (diff) | |
Clean up E0062 long explanation
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0062.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0062.md b/src/librustc_error_codes/error_codes/E0062.md index 0ebeb1bd78e..64fc027b885 100644 --- a/src/librustc_error_codes/error_codes/E0062.md +++ b/src/librustc_error_codes/error_codes/E0062.md @@ -1,6 +1,6 @@ -This error indicates that during an attempt to build a struct or struct-like -enum variant, one of the fields was specified more than once. Erroneous code -example: +A struct's or struct-like enum variant's field was specified more than once. + +Erroneous code example: ```compile_fail,E0062 struct Foo { @@ -15,7 +15,9 @@ fn main() { } ``` -Each field should be specified exactly one time. Example: +This error indicates that during an attempt to build a struct or struct-like +enum variant, one of the fields was specified more than once. Each field should +be specified exactly one time. Example: ``` struct Foo { |
