Wrong error message for associated constants: error[E0158]: statics cannot be referenced in patterns
#47570
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.
Looks like the error message is slightly off-base? Should it be something along the lines of "can't match on generic constants"?
The text was updated successfully, but these errors were encountered: