summaryrefslogtreecommitdiffstats
path: root/tests/rust/pin.rs
blob: c8781ae60f78295ec671eea3ba7df43c5a40f007 (plain)
1
2
3
4
5
6
7
8
#[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) {}