generic_const_exprs and inline_const interact poorly. #124167
Labels
C-bug
Category: This is a bug.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
F-inline_const
Inline constants (aka: const blocks, const expressions, anonymous constants)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
On current nightly, this code works:
However this code fails to compile if generic_const_exprs is enabled, by just adding
#![feature(generic_const_exprs)]
at the top of the file:Which is clearly broken? generic_const_exprs should probably not try to dig into that expression to begin with.
The text was updated successfully, but these errors were encountered: