Do not issue E0071 if a type error has already been reported
This commit is contained in:
@@ -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 };
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user