Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clean up E0283 explanation
  • Loading branch information
GuillaumeGomez committed Feb 10, 2020
1 parent 320ada6 commit ded6292
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions 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 {
Expand All @@ -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 {
Expand Down

0 comments on commit ded6292

Please sign in to comment.