aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/packed_sneaky-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pin_project/packed_sneaky-2.rs')
-rw-r--r--tests/ui/pin_project/packed_sneaky-2.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/pin_project/packed_sneaky-2.rs b/tests/ui/pin_project/packed_sneaky-2.rs
new file mode 100644
index 0000000..d162706
--- /dev/null
+++ b/tests/ui/pin_project/packed_sneaky-2.rs
@@ -0,0 +1,12 @@
+use auxiliary_macros::hidden_repr_macro;
+use pin_project::pin_project;
+
+hidden_repr_macro! { //~ ERROR may not be used on #[repr(packed)] types
+ #[pin_project]
+ struct B {
+ #[pin]
+ field: u32,
+ }
+}
+
+fn main() {}