Error Index for E0207 needs to mention const, lifetime parameters #80862
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
A-error-codes
Area: Explanation of an error code (--explain)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
As it is currently written, E0207 talks entirely about type parameters. Now that const parameters also need to constrain implementations (under the same rules described for types), they also need to be mentioned in the error explanation. Since other items don't require const parameters to be used at all, we might also want to specifically call out this difference here.
Furthermore, E0207 triggers if you use an unconstrained lifetime in an associated type, and this is completely unspecified by the error as well.
The text was updated successfully, but these errors were encountered: