Do not issue E0071 if a type error has already been reported
This commit is contained in:
parent
c7dbe7a830
commit
ab83d501a4
4 changed files with 54 additions and 18 deletions
|
@ -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 };
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue