Debian Codegraph @

.cargo/vendor/cbindgen/tests/rust/maybeuninit.rs

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