Missing unconstrained generic constant error if adt_const_params
feature is included
#90531
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Based on the example in #90455, which after the changes in #90529 would output an
unconstrained generic constant
error. The following code, however, does not output such an error, although I believe it should.Given the following code:
The current output is:
This only happens if the
adt_const_params
is included. This also compiles if you don't include the call offoo
in main.The text was updated successfully, but these errors were encountered: