Skip to content

Commit

Permalink
Clean up E0071 long explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 27, 2019
1 parent 97a1653 commit d05a914
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/librustc_error_codes/error_codes/E0071.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
You tried to use structure-literal syntax to create an item that is
not a structure or enum variant.
A structure-literal syntax was used to create an item that is not a structure
or enum variant.

Example of erroneous code:

Expand All @@ -9,8 +9,8 @@ let t = U32 { value: 4 }; // error: expected struct, variant or union type,
// found builtin type `u32`
```

To fix this, ensure that the name was correctly spelled, and that
the correct form of initializer was used.
To fix this, ensure that the name was correctly spelled, and that the correct
form of initializer was used.

For example, the code above can be fixed to:

Expand Down

0 comments on commit d05a914

Please sign in to comment.