-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.
Description
After #46882, when a trait bound fails and the trait was implemented by fixed-size arrays, the compiler will display an error like:
= help: the following implementations were found:
<[T; <unevaluated[]>] as Trait>
<[T; <unevaluated[]>] as Trait>
<[T; <unevaluated[]>] as Trait>
<[T; <unevaluated[]>] as Trait>
and 31 others
Which is pretty unhelpful. A solution would be to evaluate these and/or to show evaluated bounds preferably.
mark-i-m
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.