//@ known-bug: #115994 //@ compile-flags: -Cdebuginfo=2 --crate-type lib // To prevent "overflow while adding drop-check rules". use std::mem::ManuallyDrop; pub enum Foo { Leaf(U), Branch(BoxedFoo>), } pub type BoxedFoo = ManuallyDrop>>; pub fn test() -> Foo { todo!() }