aboutsummaryrefslogtreecommitdiff
path: root/tests/expand/naming/enum-all.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expand/naming/enum-all.rs')
-rw-r--r--tests/expand/naming/enum-all.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/expand/naming/enum-all.rs b/tests/expand/naming/enum-all.rs
new file mode 100644
index 0000000..dd513e6
--- /dev/null
+++ b/tests/expand/naming/enum-all.rs
@@ -0,0 +1,14 @@
+use pin_project::pin_project;
+
+#[pin_project(project = Proj, project_ref = ProjRef, project_replace = ProjOwn)]
+enum Enum<T, U> {
+ Struct {
+ #[pin]
+ pinned: T,
+ unpinned: U,
+ },
+ Tuple(#[pin] T, U),
+ Unit,
+}
+
+fn main() {}