diff options
| author | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-09-12 23:07:23 +0200 |
|---|---|---|
| committer | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-09-12 23:07:23 +0200 |
| commit | ab83d501a404bede933df8f33e280a7534cc71bf (patch) | |
| tree | 543bc4c223aaa4454b0b1ef41a58bf2ec71a3b47 /compiler/rustc_error_codes/src | |
| parent | c7dbe7a830100c70d59994fd940bf75bb6e39b39 (diff) | |
| download | rust-ab83d501a404bede933df8f33e280a7534cc71bf.tar.gz rust-ab83d501a404bede933df8f33e280a7534cc71bf.zip | |
Do not issue E0071 if a type error has already been reported
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0071.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0071.md b/compiler/rustc_error_codes/src/error_codes/E0071.md index bc2c03a0220..a6d6d19762b 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0071.md +++ b/compiler/rustc_error_codes/src/error_codes/E0071.md @@ -15,13 +15,13 @@ form of initializer was used. For example, the code above can be fixed to: ``` -enum Foo { - FirstValue(i32) -} +type U32 = u32; +let t: U32 = 4; +``` -fn main() { - let u = Foo::FirstValue(0i32); +or: - let t = 4; -} +``` +struct U32 { value: u32 } +let t = U32 { value: 4 }; ``` |
