Skip to content

Commit 11f7418

Browse files
Clean up E0191 explanation
1 parent ee84c30 commit 11f7418

File tree

1 file changed

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

1 file changed

+6
-4
lines changed

src/librustc_error_codes/error_codes/E0191.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Trait objects need to have all associated types specified. Erroneous code
2-
example:
1+
An associated type wasn't specified for a trait object.
2+
3+
Erroneous code example:
34

45
```compile_fail,E0191
56
trait Trait {
@@ -10,8 +11,9 @@ type Foo = Trait; // error: the value of the associated type `Bar` (from
1011
// the trait `Trait`) must be specified
1112
```
1213

13-
Please verify you specified all associated types of the trait and that you
14-
used the right trait. Example:
14+
Trait objects need to have all associated types specified. Please verify that
15+
all associated types of the trait were specified and the correct trait was used.
16+
Example:
1517

1618
```
1719
trait Trait {

0 commit comments

Comments
 (0)