Skip to content
Permalink
Browse files

Clean up E0062 long explanation

  • Loading branch information
GuillaumeGomez committed Nov 25, 2019
1 parent 4eee955 commit bf5c64abff4994c2743b675d1d39c57571155a53
Showing with 6 additions and 4 deletions.
  1. +6 −4 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 {

0 comments on commit bf5c64a

Please sign in to comment.
You can’t perform that action at this time.