clean up error codes explanation

This commit is contained in:
Guillaume Gomez 2020-01-23 13:29:15 +01:00
parent bf84eb538f
commit 3850d96379
3 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,5 @@
You used an associated type which isn't defined in the trait.
A used associated type wasn't defined in the trait.
Erroneous code example:
```compile_fail,E0220

View File

@ -1,5 +1,6 @@
An attempt was made to retrieve an associated type, but the type was ambiguous.
For example:
Erroneous code example:
```compile_fail,E0221
trait T1 {}

View File

@ -1,5 +1,6 @@
An attempt was made to constrain an associated type.
For example:
Erroneous code example:
```compile_fail,E0222
pub trait Vehicle {