Skip to content

Commit db08784

Browse files
authored
Rollup merge of #69007 - GuillaumeGomez:clean-up-e0283, r=Dylan-DPC
Clean up E0283 explanation r? @Dylan-DPC
2 parents 6e1b75b + ded6292 commit db08784

File tree

1 file changed

+5
-4
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+5
-4
lines changed

src/librustc_error_codes/error_codes/E0283.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
This error occurs when the compiler doesn't have enough information
2-
to unambiguously choose an implementation.
1+
An implementation cannot be chosen unambiguously because of lack of information.
32

4-
For example:
3+
Erroneous code example:
54

65
```compile_fail,E0283
76
trait Generator {
@@ -27,7 +26,9 @@ fn main() {
2726
}
2827
```
2928

30-
To resolve this error use the concrete type:
29+
This error can be solved by adding type annotations that provide the missing
30+
information to the compiler. In this case, the solution is to use a concrete
31+
type:
3132

3233
```
3334
trait Generator {

0 commit comments

Comments
 (0)