-
-
Notifications
You must be signed in to change notification settings - Fork 15k
arrays as const parameters result in bad error messages #81698
Copy link
Copy link
Closed
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.D-confusingDiagnostics: Confusing error or lint that should be reworked.Diagnostics: Confusing error or lint that should be reworked.F-adt_const_params`#![feature(adt_const_params)]``#![feature(adt_const_params)]`
Metadata
Metadata
Assignees
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.D-confusingDiagnostics: Confusing error or lint that should be reworked.Diagnostics: Confusing error or lint that should be reworked.F-adt_const_params`#![feature(adt_const_params)]``#![feature(adt_const_params)]`
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a much abbreviated version of the code from my experiments with adding a shuffle API to the stdsimd repo, it probably needs further reduction but I wanted to file this before I forgot:
I expected to see this happen: it works, provides a useful error, or even just ICEs.
Instead, this happened: I got a request to input a type instead!
And no, that doesn't work either if you put it in, because instead you get:
Meta
rustc --version --verbose: