Rollup merge of #69007 - GuillaumeGomez:clean-up-e0283, r=Dylan-DPC

Clean up E0283 explanation

r? @Dylan-DPC
This commit is contained in:
Dylan DPC 2020-02-10 17:29:01 +01:00 committed by GitHub
commit db08784964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {