diff options
Diffstat (limited to 'tests/expand/not_unpin/struct.rs')
-rw-r--r-- | tests/expand/not_unpin/struct.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/expand/not_unpin/struct.rs b/tests/expand/not_unpin/struct.rs new file mode 100644 index 0000000..233e6d4 --- /dev/null +++ b/tests/expand/not_unpin/struct.rs @@ -0,0 +1,10 @@ +use pin_project::pin_project; + +#[pin_project(!Unpin)] +struct Struct<T, U> { + #[pin] + pinned: T, + unpinned: U, +} + +fn main() {} |