#[repr(C)] pub struct MyStruct { number: std::cell::Cell, } pub struct NotReprC { inner: T } pub type Foo = NotReprC>; #[no_mangle] pub extern "C" fn root(a: &Foo, with_cell: &MyStruct) {}