Skip to content

Commit be06f67

Browse files
Clean up E0437 explanation
1 parent 59f4ba9 commit be06f67

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/E0437.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
Trait implementations can only implement associated types that are members of
2-
the trait in question. This error indicates that you attempted to implement
3-
an associated type whose name does not match the name of any associated type
4-
in the trait.
1+
An associated type whose name does not match any of the associated types
2+
in the trait was used when implementing the trait.
53

64
Erroneous code example:
75

@@ -13,6 +11,9 @@ impl Foo for i32 {
1311
}
1412
```
1513

14+
Trait implementations can only implement associated types that are members of
15+
the trait in question.
16+
1617
The solution to this problem is to remove the extraneous associated type:
1718

1819
```

0 commit comments

Comments
 (0)