diff options
Diffstat (limited to 'vendor/pin-project-lite/tests/expand/multifields/enum.rs')
-rw-r--r-- | vendor/pin-project-lite/tests/expand/multifields/enum.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/pin-project-lite/tests/expand/multifields/enum.rs b/vendor/pin-project-lite/tests/expand/multifields/enum.rs new file mode 100644 index 000000000..c713362ad --- /dev/null +++ b/vendor/pin-project-lite/tests/expand/multifields/enum.rs @@ -0,0 +1,18 @@ +use pin_project_lite::pin_project; + +pin_project! { +#[project_replace = EnumProjReplace] +enum Enum<T, U> { + Struct { + #[pin] + pinned1: T, + #[pin] + pinned2: T, + unpinned1: U, + unpinned2: U, + }, + Unit, +} +} + +fn main() {} |