ICE: has inference variables for offset_of with Box<dyn Trait> #111678
Labels
F-offset_of
`#![feature(offset_of)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
There is an ICE with
dyn Trait
, generics, andoffset_of
, if you turn on debug-assertions in the compiler (of the compiler itself, not of the compiled code). For this code:You get:
Originally discovered in #111665 (comment) as an ICE-on-error but you can change the code to also ICEs if there is no error (like done in this issue report).
Backtrace:
@rustbot label I-ICE F-offset_of
cc @WaffleLapkin
cc #106655
offset_of
tracking issueThe text was updated successfully, but these errors were encountered: