Skip to content

clean up error codes explanation #68482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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