diff options
Diffstat (limited to 'third_party/rust/pin-project-lite/tests/ui/unpin_sneaky.rs')
-rw-r--r-- | third_party/rust/pin-project-lite/tests/ui/unpin_sneaky.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/rust/pin-project-lite/tests/ui/unpin_sneaky.rs b/third_party/rust/pin-project-lite/tests/ui/unpin_sneaky.rs new file mode 100644 index 0000000000..984cc2a219 --- /dev/null +++ b/third_party/rust/pin-project-lite/tests/ui/unpin_sneaky.rs @@ -0,0 +1,12 @@ +use pin_project_lite::pin_project; + +pin_project! { + struct Foo { + #[pin] + inner: u8, + } +} + +impl Unpin for __Origin {} //~ ERROR E0412,E0321 + +fn main() {} |