Skip to content

Commit

Permalink
Rollup merge of #70103 - GuillaumeGomez:cleanup-e0437, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Clean up E0437 explanation

r? @Dylan-DPC
  • Loading branch information
JohnTitor authored Mar 20, 2020
2 parents 9dc6994 + be06f67 commit 532133b
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 532133b

Please sign in to comment.