#![feature(generic_const_exprs)]
ICE on evaluating constans both for type of generic const parameter and trait bound at the same type definition
#90847
Labels
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Note that it is required for both array lengths to be not a literal in order to trigger this bug.
Meta
Quite surprisingly, despite using
#![feature]
, it works not only on nightly but on beta and stable as well. Although backtraces differ, the failed assertion is the same.rustc --version --verbose
:Error output
Setting
RUST_BACKTRACE=1
revealed no stack frames at all so I usedRUST_BACKTRACE=full
.Backtrace
The text was updated successfully, but these errors were encountered: