• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0517]: attribute should be applied to a struct or union
2 --> $DIR/packed-enum.rs:3:8
3  |
43 |   #[repr(packed)] //~ ERROR E0517
5  |          ^^^^^^
64 | / enum E1 {
75 | |     V(()),
86 | | }
9  | |_- not a struct or union
10
11error[E0517]: attribute should be applied to a struct or union
12  --> $DIR/packed-enum.rs:9:8
13   |
149  |   #[repr(packed)] //~ ERROR E0517
15   |          ^^^^^^
1610 | / enum E2 {
1711 | |     V(()),
1812 | | }
19   | |_- not a struct or union
20
21error[E0517]: attribute should be applied to a struct or union
22  --> $DIR/packed-enum.rs:14:8
23   |
2414 |   #[repr(packed)] //~ ERROR E0517
25   |          ^^^^^^
2615 |   #[pin_project]
2716 | / enum E3 {
2817 | |     V(()),
2918 | | }
30   | |_- not a struct or union
31