Misleading error message when using associated const in where clause for fixed size array #44774
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
When using an associated const in a where clause to describe a fixed size array, the error message does not state that fixed size arrays cannot be described by associated consts.
Alas, it says, that the trait bound is not satisfied and suggests adding the trait bound.
Example rust code: Playground
Resulting Error message:
The text was updated successfully, but these errors were encountered: