aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/rust_pinned.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rust_pinned.rs')
-rw-r--r--tests/ui/rust_pinned.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/rust_pinned.rs b/tests/ui/rust_pinned.rs
new file mode 100644
index 00000000..34ca7e33
--- /dev/null
+++ b/tests/ui/rust_pinned.rs
@@ -0,0 +1,14 @@
+use std::marker::PhantomPinned;
+
+#[cxx::bridge]
+mod ffi {
+ extern "Rust" {
+ type Pinned;
+ }
+}
+
+pub struct Pinned {
+ _pinned: PhantomPinned,
+}
+
+fn main() {}