Kendall Koning 63c1043dfb Simplify Pin<T> to T
cbindgen already simplifies `MaybeUninit<T>` and `ManuallyDrop<T>` to `T`. This adds `Pin<T>` as well.
2021-06-19 20:48:57 +02:00

9 lines
161 B
Rust

#[repr(C)]
struct PinTest {
pinned_box: Pin<Box<i32>>,
pinned_ref: Pin<&mut i32>
}
#[no_mangle]
pub extern "C" fn root(s: Pin<&mut i32>, p: PinTest) {}