Skip to content

Commit

Permalink
Rollup merge of rust-lang#70103 - GuillaumeGomez:cleanup-e0437, r=Dyl…
Browse files Browse the repository at this point in the history
…an-DPC

Clean up E0437 explanation

r? @Dylan-DPC
  • Loading branch information
Dylan-DPC authored Mar 19, 2020
2 parents 28e7089 + be06f67 commit 6312352
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/librustc_error_codes/error_codes/E0437.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
Trait implementations can only implement associated types that are members of
the trait in question. This error indicates that you attempted to implement
an associated type whose name does not match the name of any associated type
in the trait.
An associated type whose name does not match any of the associated types
in the trait was used when implementing the trait.

Erroneous code example:

Expand All @@ -13,6 +11,9 @@ impl Foo for i32 {
}
```

Trait implementations can only implement associated types that are members of
the trait in question.

The solution to this problem is to remove the extraneous associated type:

```
Expand Down

0 comments on commit 6312352

Please sign in to comment.