Bad error when using a const generic wrong #111110
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
The following code:
produces the error
however, when enabling
feature(generic_const_exprs)
, the error changes toThe error on stable should change to be the same as the error with
generic_const_exprs
enabled.On stable, it's probably more likely that the user doesn't want the generic to be const, or wants to remove the
{}
than them trying to actually do anything withgeneric_const_exprs
.The text was updated successfully, but these errors were encountered: