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