Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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