File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/librustc_error_codes/error_codes Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 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.
1+ An associated constant whose name does not match any of the associated constants
2+ in the trait was used when implementing the trait.
53
64Erroneous code example:
75
@@ -13,6 +11,9 @@ impl Foo for i32 {
1311}
1412```
1513
14+ Trait implementations can only implement associated constants that are
15+ members of the trait in question.
16+
1617The solution to this problem is to remove the extraneous associated constant:
1718
1819```
You can’t perform that action at this time.
0 commit comments