diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-02-09 23:11:54 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-02-10 13:23:52 +0100 |
| commit | ded629289a4040450396ea83ad9bddc459a9582c (patch) | |
| tree | 81af83b63cc433200f435e35b13e4c26bf31f772 /src/librustc_error_codes/error_codes | |
| parent | 320ada6479b3e29c7d9a66bc56ac44c2d2b57566 (diff) | |
Clean up E0283 explanation
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0283.md | 9 |
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 { |
