Const generic type parameter in trait declaration ICE #60503
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
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.
Const generic type parameter in trait declaration causes ICE.
Looks similar to #44580 (comment)
I tried this code:
I don't know enough about the const generics plan to know whether they'll be supported for traits, but I got internal compiler errors on Nightly and Beta with the above line.
Meta
Nightly
rustc +nightly --version --verbose
:Backtrace (running
echo 'trait Blarg<const T: ()> {}' > blarg.rs; env RUST_BACKTRACE=full rustc +nightly blarg.rs --verbose
):Beta
rustc +beta --version --verbose
:Backtrace (running
echo 'trait Blarg<const T: ()> {}' > blarg.rs; env RUST_BACKTRACE=full rustc +beta blarg.rs --verbose
):The text was updated successfully, but these errors were encountered: