aboutsummaryrefslogtreecommitdiff
path: root/tests/expand/multifields/struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expand/multifields/struct.rs')
-rw-r--r--tests/expand/multifields/struct.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/expand/multifields/struct.rs b/tests/expand/multifields/struct.rs
new file mode 100644
index 0000000..a1d45d1
--- /dev/null
+++ b/tests/expand/multifields/struct.rs
@@ -0,0 +1,15 @@
+use pin_project_lite::pin_project;
+
+pin_project! {
+#[project_replace = StructProjReplace]
+struct Struct<T, U> {
+ #[pin]
+ pinned1: T,
+ #[pin]
+ pinned2: T,
+ unpinned1: U,
+ unpinned2: U,
+}
+}
+
+fn main() {}