1
Fork 0

Do not issue E0071 if a type error has already been reported

This commit is contained in:
Fabian Wolff 2021-09-12 23:07:23 +02:00
parent c7dbe7a830
commit ab83d501a4
4 changed files with 54 additions and 18 deletions

View file

@ -15,13 +15,13 @@ form of initializer was used.
For example, the code above can be fixed to:
```
enum Foo {
FirstValue(i32)
}
fn main() {
let u = Foo::FirstValue(0i32);
let t = 4;
}
type U32 = u32;
let t: U32 = 4;
```
or:
```
struct U32 { value: u32 }
let t = U32 { value: 4 };
```