Skip to content

All fixed-size array impls show up as <unevaluated[]> #49208

Closed
@eira-fransham

Description

@eira-fransham

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions