diff options
Diffstat (limited to 'third_party/rust/pin-project-lite/tests/expand/naming/enum-none.rs')
-rw-r--r-- | third_party/rust/pin-project-lite/tests/expand/naming/enum-none.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/rust/pin-project-lite/tests/expand/naming/enum-none.rs b/third_party/rust/pin-project-lite/tests/expand/naming/enum-none.rs new file mode 100644 index 0000000000..b2e3f9d76a --- /dev/null +++ b/third_party/rust/pin-project-lite/tests/expand/naming/enum-none.rs @@ -0,0 +1,14 @@ +use pin_project_lite::pin_project; + +pin_project! { + enum Enum<T, U> { + Struct { + #[pin] + pinned: T, + unpinned: U, + }, + Unit, + } +} + +fn main() {} |