diff options
Diffstat (limited to 'third_party/rust/pin-project/examples/struct-default.rs')
-rw-r--r-- | third_party/rust/pin-project/examples/struct-default.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/rust/pin-project/examples/struct-default.rs b/third_party/rust/pin-project/examples/struct-default.rs new file mode 100644 index 0000000000..46808a5827 --- /dev/null +++ b/third_party/rust/pin-project/examples/struct-default.rs @@ -0,0 +1,14 @@ +// See ./struct-default-expanded.rs for generated code. + +#![allow(dead_code)] + +use pin_project::pin_project; + +#[pin_project] +struct Struct<T, U> { + #[pin] + pinned: T, + unpinned: U, +} + +fn main() {} |