//@ compile-flags: -Znext-solver //@ check-pass use std::mem::ManuallyDrop; trait Foo {} struct Guard { value: ManuallyDrop, } impl Guard { fn uwu(&self) { let x: &dyn Foo = &*self.value; } } fn main() {}