Debian Codegraph @

third_party/rust/pin-project/tests/ui/pin_project/packed-enum.stderr

raw
1 error: #[repr(packed)] attribute should be applied to a struct or union
2 --> tests/ui/pin_project/packed-enum.rs:13:8
3 |
4 13 | #[repr(packed)] //~ ERROR E0517
5 | ^^^^^^
6
7 error: #[repr(packed)] attribute should be applied to a struct or union
8 --> tests/ui/pin_project/packed-enum.rs:18:8
9 |
10 18 | #[repr(packed)] //~ ERROR E0517
11 | ^^^^^^
12
13 error[E0517]: attribute should be applied to a struct or union
14 --> tests/ui/pin_project/packed-enum.rs:7:8
15 |
16 7 | #[repr(packed)] //~ ERROR E0517
17 | ^^^^^^
18 8 | / enum E1 {
19 9 | | V(()),
20 10 | | }
21 | |_- not a struct or union
22
23 error[E0517]: attribute should be applied to a struct or union
24 --> tests/ui/pin_project/packed-enum.rs:13:8
25 |
26 13 | #[repr(packed)] //~ ERROR E0517
27 | ^^^^^^
28 14 | / enum E2 {
29 15 | | V(()),
30 16 | | }
31 | |_- not a struct or union
32
33 error[E0517]: attribute should be applied to a struct or union
34 --> tests/ui/pin_project/packed-enum.rs:18:8
35 |
36 18 | #[repr(packed)] //~ ERROR E0517
37 | ^^^^^^
38 19 | #[pin_project]
39 20 | / enum E3 {
40 21 | | V(()),
41 22 | | }
42 | |_- not a struct or union