Clean up E0071 long explanation

This commit is contained in:
Guillaume Gomez
2019-11-26 13:47:20 +01:00
parent 97a1653f09
commit d05a914b24

View File

@@ -1,5 +1,5 @@
You tried to use structure-literal syntax to create an item that is A structure-literal syntax was used to create an item that is not a structure
not a structure or enum variant. or enum variant.
Example of erroneous code: Example of erroneous code:
@@ -9,8 +9,8 @@ let t = U32 { value: 4 }; // error: expected struct, variant or union type,
// found builtin type `u32` // found builtin type `u32`
``` ```
To fix this, ensure that the name was correctly spelled, and that To fix this, ensure that the name was correctly spelled, and that the correct
the correct form of initializer was used. form of initializer was used.
For example, the code above can be fixed to: For example, the code above can be fixed to: