diff options
Diffstat (limited to 'third_party/rust/pin-project/tests/expand/multifields/struct.rs')
-rw-r--r-- | third_party/rust/pin-project/tests/expand/multifields/struct.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/rust/pin-project/tests/expand/multifields/struct.rs b/third_party/rust/pin-project/tests/expand/multifields/struct.rs new file mode 100644 index 0000000000..3b319bf813 --- /dev/null +++ b/third_party/rust/pin-project/tests/expand/multifields/struct.rs @@ -0,0 +1,13 @@ +use pin_project::pin_project; + +#[pin_project(project_replace)] +struct Struct<T, U> { + #[pin] + pinned1: T, + #[pin] + pinned2: T, + unpinned1: U, + unpinned2: U, +} + +fn main() {} |