Skip to content

Commit

Permalink
Clean up E0191 explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 13, 2020
1 parent ee84c30 commit 11f7418
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/librustc_error_codes/error_codes/E0191.md
@@ -1,5 +1,6 @@
Trait objects need to have all associated types specified. Erroneous code
example:
An associated type wasn't specified for a trait object.

Erroneous code example:

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

Please verify you specified all associated types of the trait and that you
used the right trait. Example:
Trait objects need to have all associated types specified. Please verify that
all associated types of the trait were specified and the correct trait was used.
Example:

```
trait Trait {
Expand Down

0 comments on commit 11f7418

Please sign in to comment.