From 3850d96379126087240b640470632362a5d32234 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 23 Jan 2020 13:29:15 +0100 Subject: [PATCH] clean up error codes explanation --- src/librustc_error_codes/error_codes/E0220.md | 3 ++- src/librustc_error_codes/error_codes/E0221.md | 3 ++- src/librustc_error_codes/error_codes/E0222.md | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/librustc_error_codes/error_codes/E0220.md b/src/librustc_error_codes/error_codes/E0220.md index 43e075b522b..4ab52b642d5 100644 --- a/src/librustc_error_codes/error_codes/E0220.md +++ b/src/librustc_error_codes/error_codes/E0220.md @@ -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 diff --git a/src/librustc_error_codes/error_codes/E0221.md b/src/librustc_error_codes/error_codes/E0221.md index 53fabf490e2..26111ca4293 100644 --- a/src/librustc_error_codes/error_codes/E0221.md +++ b/src/librustc_error_codes/error_codes/E0221.md @@ -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 {} diff --git a/src/librustc_error_codes/error_codes/E0222.md b/src/librustc_error_codes/error_codes/E0222.md index 66b6c4d712b..fbf1b8d7033 100644 --- a/src/librustc_error_codes/error_codes/E0222.md +++ b/src/librustc_error_codes/error_codes/E0222.md @@ -1,5 +1,6 @@ An attempt was made to constrain an associated type. -For example: + +Erroneous code example: ```compile_fail,E0222 pub trait Vehicle {