#[repr(C)] pub struct MyStruct { number: Box, } pub struct NotReprC { inner: T, } pub type Foo = NotReprC>; #[no_mangle] pub extern "C" fn root(a: &Foo, with_box: &MyStruct) {} #[no_mangle] pub extern "C" fn drop_box(x: Box) {} #[no_mangle] pub extern "C" fn drop_box_opt(x: Option>) {}