Rollup merge of #70146 - GuillaumeGomez:cleanup-e0438, r=Dylan-DPC
Clean up e0438 explanation r? @Dylan-DPC
This commit is contained in:
commit
8965f63f84
1 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,5 @@
|
||||||
Trait implementations can only implement associated constants that are
|
An associated constant whose name does not match any of the associated constants
|
||||||
members of the trait in question. This error indicates that you
|
in the trait was used when implementing the trait.
|
||||||
attempted to implement an associated constant whose name does not
|
|
||||||
match the name of any associated constant in the trait.
|
|
||||||
|
|
||||||
Erroneous code example:
|
Erroneous code example:
|
||||||
|
|
||||||
|
@ -13,6 +11,9 @@ impl Foo for i32 {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Trait implementations can only implement associated constants that are
|
||||||
|
members of the trait in question.
|
||||||
|
|
||||||
The solution to this problem is to remove the extraneous associated constant:
|
The solution to this problem is to remove the extraneous associated constant:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue