Debian Codegraph @

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

raw
1 error: unsupported on generic structs that are not repr(transparent) or repr(packed)
2 --> tests/ui-msrv/struct.rs:55:10
3 |
4 55 | #[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/struct.rs:80:11
11 |
12 80 | #[repr(C, align(2))]
13 | ^^^^^^^^
14
15 error: cannot derive Unaligned with repr(align(N > 1))
16 --> tests/ui-msrv/struct.rs:84:21
17 |
18 84 | #[repr(transparent, align(2))]
19 | ^^^^^^^^
20
21 error: cannot derive Unaligned with repr(align(N > 1))
22 --> tests/ui-msrv/struct.rs:90:16
23 |
24 90 | #[repr(packed, align(2))]
25 | ^^^^^^^^
26
27 error: cannot derive Unaligned with repr(align(N > 1))
28 --> tests/ui-msrv/struct.rs:94:18
29 |
30 94 | #[repr(align(1), align(2))]
31 | ^^^^^^^^
32
33 error: cannot derive Unaligned with repr(align(N > 1))
34 --> tests/ui-msrv/struct.rs:98:8
35 |
36 98 | #[repr(align(2), align(4))]
37 | ^^^^^^^^
38
39 error[E0692]: transparent struct cannot have other repr hints
40 --> tests/ui-msrv/struct.rs:84:8
41 |
42 84 | #[repr(transparent, align(2))]
43 | ^^^^^^^^^^^ ^^^^^^^^
44
45 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
46 --> tests/ui-msrv/struct.rs:31:10
47 |
48 31 | #[derive(KnownLayout)]
49 | ^^^^^^^^^^^ doesn't have a size known at compile-time
50 |
51 = help: within `KL00`, the trait `Sized` is not implemented for `[u8]`
52 note: required because it appears within the type `KL00`
53 --> tests/ui-msrv/struct.rs:32:8
54 |
55 32 | struct KL00(u8, NotKnownLayoutDst);
56 | ^^^^
57 = help: see issue #48214
58 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
59
60 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
61 --> tests/ui-msrv/struct.rs:36:10
62 |
63 36 | #[derive(KnownLayout)]
64 | ^^^^^^^^^^^ doesn't have a size known at compile-time
65 |
66 = help: within `KL02`, the trait `Sized` is not implemented for `[u8]`
67 note: required because it appears within the type `KL02`
68 --> tests/ui-msrv/struct.rs:37:8
69 |
70 37 | struct KL02(u8, [u8]);
71 | ^^^^
72 = help: see issue #48214
73 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
74
75 error[E0277]: the trait bound `NotKnownLayoutDst: KnownLayout` is not satisfied
76 --> tests/ui-msrv/struct.rs:41:10
77 |
78 41 | #[derive(KnownLayout)]
79 | ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayoutDst`
80 |
81 = help: see issue #48214
82 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
83
84 error[E0277]: the trait bound `NotKnownLayout: KnownLayout` is not satisfied
85 --> tests/ui-msrv/struct.rs:47:10
86 |
87 47 | #[derive(KnownLayout)]
88 | ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayout`
89 |
90 = help: see issue #48214
91 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
92
93 error[E0277]: the trait bound `HasPadding<AsBytes2, true>: ShouldBe<false>` is not satisfied
94 --> tests/ui-msrv/struct.rs:59:10
95 |
96 59 | #[derive(AsBytes)]
97 | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes2, true>`
98 |
99 = help: the following implementations were found:
100 <HasPadding<T, VALUE> as ShouldBe<VALUE>>
101 = help: see issue #48214
102 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
103
104 error[E0277]: the trait bound `HasPadding<AsBytes3, true>: ShouldBe<false>` is not satisfied
105 --> tests/ui-msrv/struct.rs:66:10
106 |
107 66 | #[derive(AsBytes)]
108 | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes3, true>`
109 |
110 = help: the following implementations were found:
111 <HasPadding<T, VALUE> as ShouldBe<VALUE>>
112 = help: see issue #48214
113 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)