diff options
Diffstat (limited to 'tests/expand/project_replace/enum.rs')
-rw-r--r-- | tests/expand/project_replace/enum.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/expand/project_replace/enum.rs b/tests/expand/project_replace/enum.rs new file mode 100644 index 0000000..d737f64 --- /dev/null +++ b/tests/expand/project_replace/enum.rs @@ -0,0 +1,14 @@ +use pin_project::pin_project; + +#[pin_project(project_replace = EnumProjOwn)] +enum Enum<T, U> { + Struct { + #[pin] + pinned: T, + unpinned: U, + }, + Tuple(#[pin] T, U), + Unit, +} + +fn main() {} |