blob: 23d1507136f7ca62ff0d2a24fb9a63eb9bba8589 [file] [log] [blame] [edit]
//@ 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<U> {
Leaf(U),
Branch(BoxedFoo<BoxedFoo<U>>),
}
pub type BoxedFoo<U> = ManuallyDrop<Box<Foo<U>>>;
pub fn test() -> Foo<usize> {
todo!()
}