summaryrefslogtreecommitdiffstats
path: root/tests/rust/pin.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/pin.rs')
-rw-r--r--tests/rust/pin.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rust/pin.rs b/tests/rust/pin.rs
new file mode 100644
index 0000000..c8781ae
--- /dev/null
+++ b/tests/rust/pin.rs
@@ -0,0 +1,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) {}