aboutsummaryrefslogtreecommitdiff
path: root/tests/expand/unsafe_unpin/tuple_struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expand/unsafe_unpin/tuple_struct.rs')
-rw-r--r--tests/expand/unsafe_unpin/tuple_struct.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/expand/unsafe_unpin/tuple_struct.rs b/tests/expand/unsafe_unpin/tuple_struct.rs
new file mode 100644
index 0000000..964617a
--- /dev/null
+++ b/tests/expand/unsafe_unpin/tuple_struct.rs
@@ -0,0 +1,8 @@
+use pin_project::{pin_project, UnsafeUnpin};
+
+#[pin_project(UnsafeUnpin)]
+struct TupleStruct<T, U>(#[pin] T, U);
+
+unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {}
+
+fn main() {}