Improve E0323 error explanation
This commit is contained in:
parent
73685afb8a
commit
73b369d7ab
@ -1279,8 +1279,8 @@ fn main() {
|
|||||||
"##,
|
"##,
|
||||||
|
|
||||||
E0103: r##"
|
E0103: r##"
|
||||||
You hit this error because the compiler the compiler lacks information
|
You hit this error because the compiler lacks information to determine a type
|
||||||
to determine a type for this pattern binding.
|
for this pattern binding.
|
||||||
|
|
||||||
You have two possibilities to solve this situation:
|
You have two possibilities to solve this situation:
|
||||||
* Give an explicit definition of the expression
|
* Give an explicit definition of the expression
|
||||||
@ -2437,8 +2437,8 @@ impl Foo for Bar {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
To fix this error, please verify you didn't misspell the associated
|
Please verify that the associated const wasn't misspelled and the correct trait
|
||||||
const name or you did implement the good trait item. Example:
|
was implemented. Example:
|
||||||
|
|
||||||
```
|
```
|
||||||
struct Bar;
|
struct Bar;
|
||||||
|
Loading…
Reference in New Issue
Block a user