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