Debian Codegraph @

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

raw
1 error: unsupported on generic structs that are not repr(transparent) or repr(packed)
2 --> tests/ui-stable/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-stable/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-stable/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-stable/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-stable/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-stable/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-stable/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-stable/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-stable/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-stable/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-stable/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-stable/struct.rs:41:10
77 |
78 41 | #[derive(KnownLayout)]
79 | ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayoutDst`
80 |
81 = help: the following other types implement trait `KnownLayout`:
82 bool
83 char
84 isize
85 i8
86 i16
87 i32
88 i64
89 i128
90 and $N others
91 = help: see issue #48214
92 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
93
94 error[E0277]: the trait bound `NotKnownLayout: KnownLayout` is not satisfied
95 --> tests/ui-stable/struct.rs:47:10
96 |
97 47 | #[derive(KnownLayout)]
98 | ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayout`
99 |
100 = help: the following other types implement trait `KnownLayout`:
101 bool
102 char
103 isize
104 i8
105 i16
106 i32
107 i64
108 i128
109 and $N others
110 = help: see issue #48214
111 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
112
113 error[E0277]: the trait bound `HasPadding<AsBytes2, true>: ShouldBe<false>` is not satisfied
114 --> tests/ui-stable/struct.rs:59:10
115 |
116 59 | #[derive(AsBytes)]
117 | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes2, true>`
118 |
119 = help: the trait `ShouldBe<VALUE>` is implemented for `HasPadding<T, VALUE>`
120 = help: see issue #48214
121 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
122
123 error[E0277]: the trait bound `HasPadding<AsBytes3, true>: ShouldBe<false>` is not satisfied
124 --> tests/ui-stable/struct.rs:66:10
125 |
126 66 | #[derive(AsBytes)]
127 | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes3, true>`
128 |
129 = help: the trait `ShouldBe<VALUE>` is implemented for `HasPadding<T, VALUE>`
130 = help: see issue #48214
131 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)