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