about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-02-10 17:29:01 +0100
committerGitHub <noreply@github.com>2020-02-10 17:29:01 +0100
commitdb08784964012fc998b33f4104daf05a121383e0 (patch)
treeb87ddbc8af08ba7444e54973b4e9e7d8ffc436a1 /src/librustc_error_codes/error_codes
parent6e1b75b7e16a5759567fa6b78f24ee9380681459 (diff)
parentded629289a4040450396ea83ad9bddc459a9582c (diff)
Rollup merge of #69007 - GuillaumeGomez:clean-up-e0283, r=Dylan-DPC
Clean up E0283 explanation

r? @Dylan-DPC
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0283.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0283.md b/src/librustc_error_codes/error_codes/E0283.md
index 075f8b2e3bb..6885f9a486d 100644
--- a/src/librustc_error_codes/error_codes/E0283.md
+++ b/src/librustc_error_codes/error_codes/E0283.md
@@ -1,7 +1,6 @@
-This error occurs when the compiler doesn't have enough information
-to unambiguously choose an implementation.
+An implementation cannot be chosen unambiguously because of lack of information.
 
-For example:
+Erroneous code example:
 
 ```compile_fail,E0283
 trait Generator {
@@ -27,7 +26,9 @@ fn main() {
 }
 ```
 
-To resolve this error use the concrete type:
+This error can be solved by adding type annotations that provide the missing
+information to the compiler. In this case, the solution is to use a concrete
+type:
 
 ```
 trait Generator {