ICE type parameter out of range when substituting #105238
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
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) ❄️
requires-incomplete-features
This issue requires the use of incomplete features.
requires-nightly
This issue requires a nightly compiler in some way.
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.
I'm trying to implement something like c++
std::conditional_t
withgeneric_const_exprs
. The follower code just works but much verbose due to lack of type alias inside struct.Code
I tried to change it to below forms but all got internal compiler error
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: