summaryrefslogtreecommitdiffstats
path: root/third_party/rust/pin-project-lite/tests/expand/naming/struct-all.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/pin-project-lite/tests/expand/naming/struct-all.rs')
-rw-r--r--third_party/rust/pin-project-lite/tests/expand/naming/struct-all.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/rust/pin-project-lite/tests/expand/naming/struct-all.rs b/third_party/rust/pin-project-lite/tests/expand/naming/struct-all.rs
new file mode 100644
index 0000000000..cb087530fe
--- /dev/null
+++ b/third_party/rust/pin-project-lite/tests/expand/naming/struct-all.rs
@@ -0,0 +1,14 @@
+use pin_project_lite::pin_project;
+
+pin_project! {
+ #[project = StructProj]
+ #[project_ref = StructProjRef]
+ #[project_replace = StructProjReplace]
+ struct Struct<T, U> {
+ #[pin]
+ pinned: T,
+ unpinned: U,
+ }
+}
+
+fn main() {}