We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59f4ba9 commit be06f67Copy full SHA for be06f67
src/librustc_error_codes/error_codes/E0437.md
@@ -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.
+An associated type whose name does not match any of the associated types
+in the trait was used when implementing the trait.
5
6
Erroneous code example:
7
@@ -13,6 +11,9 @@ impl Foo for i32 {
13
11
}
14
12
```
15
+Trait implementations can only implement associated types that are members of
+the trait in question.
16
+
17
The solution to this problem is to remove the extraneous associated type:
18
19
0 commit comments