Debian Codegraph @

third_party/rust/zerocopy-derive/tests/ui-msrv/union.stderr

raw
1 error: unsupported on types with type parameters
2 --> tests/ui-msrv/union.rs:24:10
3 |
4 24 | #[derive(AsBytes)]
5 | ^^^^^^^
6 |
7 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 error: cannot derive Unaligned with repr(align(N > 1))
10 --> tests/ui-msrv/union.rs:42:11
11 |
12 42 | #[repr(C, align(2))]
13 | ^^^^^^^^
14
15 error: cannot derive Unaligned with repr(align(N > 1))
16 --> tests/ui-msrv/union.rs:58:16
17 |
18 58 | #[repr(packed, align(2))]
19 | ^^^^^^^^
20
21 error: cannot derive Unaligned with repr(align(N > 1))
22 --> tests/ui-msrv/union.rs:64:18
23 |
24 64 | #[repr(align(1), align(2))]
25 | ^^^^^^^^
26
27 error: cannot derive Unaligned with repr(align(N > 1))
28 --> tests/ui-msrv/union.rs:70:8
29 |
30 70 | #[repr(align(2), align(4))]
31 | ^^^^^^^^
32
33 error[E0277]: the trait bound `HasPadding<AsBytes2, true>: ShouldBe<false>` is not satisfied
34 --> tests/ui-msrv/union.rs:30:10
35 |
36 30 | #[derive(AsBytes)]
37 | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes2, true>`
38 |
39 = help: the following implementations were found:
40 <HasPadding<T, VALUE> as ShouldBe<VALUE>>
41 = help: see issue #48214
42 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)