Skip to content

Commit

Permalink
Rollup merge of rust-lang#68482 - GuillaumeGomez:clean-up-err-codes, …
Browse files Browse the repository at this point in the history
…r=Dylan-DPC

clean up error codes explanation

r? @Dylan-DPC
  • Loading branch information
JohnTitor authored Jan 28, 2020
2 parents 39407c9 + 833ffd7 commit 8ed5865
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/librustc_error_codes/error_codes/E0220.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
You used an associated type which isn't defined in the trait.
The associated type used was not defined in the trait.

Erroneous code example:

```compile_fail,E0220
Expand Down
3 changes: 2 additions & 1 deletion src/librustc_error_codes/error_codes/E0221.md
Original file line number Diff line number Diff line change
@@ -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 {}
Expand Down
3 changes: 2 additions & 1 deletion src/librustc_error_codes/error_codes/E0222.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
An attempt was made to constrain an associated type.
For example:

Erroneous code example:

```compile_fail,E0222
pub trait Vehicle {
Expand Down

0 comments on commit 8ed5865

Please sign in to comment.