aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/packed-enum.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pin_project/packed-enum.stderr')
-rw-r--r--tests/ui/pin_project/packed-enum.stderr30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/ui/pin_project/packed-enum.stderr b/tests/ui/pin_project/packed-enum.stderr
new file mode 100644
index 0000000..0a5d31b
--- /dev/null
+++ b/tests/ui/pin_project/packed-enum.stderr
@@ -0,0 +1,30 @@
+error[E0517]: attribute should be applied to struct or union
+ --> $DIR/packed-enum.rs:3:8
+ |
+3 | #[repr(packed)] //~ ERROR E0517
+ | ^^^^^^
+4 | / enum E1 {
+5 | | V(()),
+6 | | }
+ | |_- not a struct or union
+
+error[E0517]: attribute should be applied to struct or union
+ --> $DIR/packed-enum.rs:9:8
+ |
+9 | #[repr(packed)] //~ ERROR E0517
+ | ^^^^^^
+10 | / enum E2 {
+11 | | V(()),
+12 | | }
+ | |_- not a struct or union
+
+error[E0517]: attribute should be applied to struct or union
+ --> $DIR/packed-enum.rs:14:8
+ |
+14 | #[repr(packed)] //~ ERROR E0517
+ | ^^^^^^
+15 | #[pin_project]
+16 | / enum E3 {
+17 | | V(()),
+18 | | }
+ | |_- not a struct or union