ICE: assertion left == right failed
in rustc_const_eval/src/interpret/cast.rs
#126666
Labels
C-bug
Category: This is a bug.
F-const_mut_refs
`#![feature(const_mut_refs)]`
F-const_refs_to_static
`#![feature(const_refs_to_static)]`
F-dyn_compatible_for_dispatch
`#![feature(dyn_compatible_for_dispatch)]`; formerly `object_safe_for_dispatch`
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.
Code
(hand-reduced & simplified)
object_safe_for_dispatch
added from original code.(original)
Meta
rustc --version --verbose
:Error output
Command:
rustc
Backtrace
Note
compiler/rustc_const_eval/src/interpret/cast.rs L214
rust/compiler/rustc_const_eval/src/interpret/cast.rs
Lines 209 to 218 in 8fcd4dd
@rustbot label +F-const_mut_refs +F-const_refs_to_static +F-object_safe_for_dispatch
The text was updated successfully, but these errors were encountered: