E0207 when type parameter's associated type is used in Self
.
#64155
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Not sure if this needs to be an error or not.
Per
rustc --explain E0207
,impl
type parameter are acceptable if they appear in theSelf
type of theimpl
. Emphasis mine:Rustc currently generates an error even if an associated type of the parameter appears in the
Self
type: playground link:It seems like this doesn't need to be an error, but perhaps I'm missing something?
The text was updated successfully, but these errors were encountered: