2
0

maybeuninit.rs 280 B

12345678910111213
  1. #[repr(C)]
  2. pub struct MyStruct<'a> {
  3. number: std::mem::MaybeUninit<&'a i32>,
  4. }
  5. pub struct NotReprC<T> {
  6. inner: T,
  7. }
  8. pub type Foo<'a> = NotReprC<std::mem::MaybeUninit<&'a i32>>;
  9. #[no_mangle]
  10. pub extern "C" fn root<'a, 'b>(a: &'a Foo, with_maybe_uninit: &'b MyStruct) {}