unhelpful error message when declaring constant with type parameter's associated constant #53241
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
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.
For this code:
I get the error message:
QUX
is not a method and cannot have local type parameters; I don't think constants can be generic. So the error message is confusing.The text was updated successfully, but these errors were encountered: