Using associated constant as array length: without (funny error) and with (ICE) const generics #68205
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
glacier
ICE tracked in rust-lang/glacier.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following test and nightly 2020-01-12:
I get that this is not supposed to work without const generics, but the error message suggestion is very funny:
With const generics:
The text was updated successfully, but these errors were encountered: