aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/packed-enum.stderr
blob: 0951944c0200fdb15b81acc55f613ee73558b46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
error: #[repr(packed)] attribute should be applied to a struct or union
  --> $DIR/packed-enum.rs:13:8
   |
13 | #[repr(packed)] //~ ERROR E0517
   |        ^^^^^^

error: #[repr(packed)] attribute should be applied to a struct or union
  --> $DIR/packed-enum.rs:18:8
   |
18 | #[repr(packed)] //~ ERROR E0517
   |        ^^^^^^

error[E0517]: attribute should be applied to a struct or union
  --> $DIR/packed-enum.rs:7:8
   |
7  |   #[repr(packed)] //~ ERROR E0517
   |          ^^^^^^
8  | / enum E1 {
9  | |     V(()),
10 | | }
   | |_- not a struct or union

error[E0517]: attribute should be applied to a struct or union
  --> $DIR/packed-enum.rs:13:8
   |
13 |   #[repr(packed)] //~ ERROR E0517
   |          ^^^^^^
14 | / enum E2 {
15 | |     V(()),
16 | | }
   | |_- not a struct or union

error[E0517]: attribute should be applied to a struct or union
  --> $DIR/packed-enum.rs:18:8
   |
18 |   #[repr(packed)] //~ ERROR E0517
   |          ^^^^^^
19 |   #[pin_project]
20 | / enum E3 {
21 | |     V(()),
22 | | }
   | |_- not a struct or union