Internal compiler error on implementation with 'complex' constant trait bounds #86953
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
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
The code fragment is located here : code
I narrowed down the error to the following block :
Code fragment
Context
I am experimenting with a naive implementation of bitsets, relying heavily on some (as I discovered) unstable features :
const_evaluatable_checked
andconst_generics
. My implementation of theAdd
trait is probably terribly wrong!NB: I only get the error with the
Debug
preset. When building on theRelease
preset I don't get any error.Meta
I only provide the data for the nightly compiler, as unstable features are not enabled on the release version.
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: