We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6ebf21 + 6f16118 commit 8965f63Copy full SHA for 8965f63
src/librustc_error_codes/error_codes/E0438.md
@@ -1,7 +1,5 @@
1
-Trait implementations can only implement associated constants that are
2
-members of the trait in question. This error indicates that you
3
-attempted to implement an associated constant whose name does not
4
-match the name of any associated constant in the trait.
+An associated constant whose name does not match any of the associated constants
+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 constants that are
+members of the trait in question.
16
+
17
The solution to this problem is to remove the extraneous associated constant:
18
19
0 commit comments