From 3850d96379126087240b640470632362a5d32234 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 23 Jan 2020 13:29:15 +0100 Subject: [PATCH 1/2] 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 43e075b522b4e..4ab52b642d500 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 53fabf490e2c3..26111ca429333 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 66b6c4d712b70..fbf1b8d703314 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 { From 833ffd7b839caa843f51bfa992baea89fe4fd2fb Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 27 Jan 2020 16:06:38 +0100 Subject: [PATCH 2/2] Update src/librustc_error_codes/error_codes/E0220.md Co-Authored-By: Dylan DPC --- src/librustc_error_codes/error_codes/E0220.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_error_codes/error_codes/E0220.md b/src/librustc_error_codes/error_codes/E0220.md index 4ab52b642d500..ddc54007c8c52 100644 --- a/src/librustc_error_codes/error_codes/E0220.md +++ b/src/librustc_error_codes/error_codes/E0220.md @@ -1,4 +1,4 @@ -A used associated type wasn't defined in the trait. +The associated type used was not defined in the trait. Erroneous code example: