Error message should be improved for associated consts in array lengths #44168
Labels
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.
The following code
results in an error “error[E0599]: no associated item named
LENGTH
found for typeT
in the current scope”. Which is not true, it just doesn’t work in arrays yet (see #29646). The error message should reflect that.The text was updated successfully, but these errors were encountered: