summaryrefslogtreecommitdiffstats
path: root/third_party/rust/pin-project-lite/tests/expand/multifields/struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/pin-project-lite/tests/expand/multifields/struct.rs')
-rw-r--r--third_party/rust/pin-project-lite/tests/expand/multifields/struct.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/rust/pin-project-lite/tests/expand/multifields/struct.rs b/third_party/rust/pin-project-lite/tests/expand/multifields/struct.rs
new file mode 100644
index 0000000000..a1d45d168e
--- /dev/null
+++ b/third_party/rust/pin-project-lite/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() {}