Compiler crash: type parameter D/#3
(D/#3/3) out of range when substituting (project with feature generic_const_exprs)
#117460
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When I add the default generic parameter then the error about that part goes away, but the crash remains.
Code
This is a very broken intermediate state where I try to replace a field
data: Box<[T; X * Y]>
with a generic field that hasAsRef<[T; X * Y]>
.panzi/rust-matrix@64fecf7
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: