Debian Codegraph @

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

raw
1 error: unsupported on generic structs that are not repr(transparent) or repr(packed)
2 --> tests/ui-nightly/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-nightly/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-nightly/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-nightly/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-nightly/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-nightly/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-nightly/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-nightly/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-nightly/struct.rs:32:8
54 |
55 32 | struct KL00(u8, NotKnownLayoutDst);
56 | ^^^^
57 = help: see issue #48214
58 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
59 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
60
61 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
62 --> tests/ui-nightly/struct.rs:36:10
63 |
64 36 | #[derive(KnownLayout)]
65 | ^^^^^^^^^^^ doesn't have a size known at compile-time
66 |
67 = help: within `KL02`, the trait `Sized` is not implemented for `[u8]`
68 note: required because it appears within the type `KL02`
69 --> tests/ui-nightly/struct.rs:37:8
70 |
71 37 | struct KL02(u8, [u8]);
72 | ^^^^
73 = help: see issue #48214
74 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
75 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
76
77 error[E0277]: the trait bound `NotKnownLayoutDst: KnownLayout` is not satisfied
78 --> tests/ui-nightly/struct.rs:41:10
79 |
80 41 | #[derive(KnownLayout)]
81 | ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayoutDst`
82 |
83 = help: the following other types implement trait `KnownLayout`:
84 bool
85 char
86 isize
87 i8
88 i16
89 i32
90 i64
91 i128
92 and $N others
93 = help: see issue #48214
94 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
95 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
96
97 error[E0277]: the trait bound `NotKnownLayout: KnownLayout` is not satisfied
98 --> tests/ui-nightly/struct.rs:47:10
99 |
100 47 | #[derive(KnownLayout)]
101 | ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayout`
102 |
103 = help: the following other types implement trait `KnownLayout`:
104 bool
105 char
106 isize
107 i8
108 i16
109 i32
110 i64
111 i128
112 and $N others
113 = help: see issue #48214
114 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
115 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
116
117 error[E0277]: the trait bound `HasPadding<AsBytes2, true>: ShouldBe<false>` is not satisfied
118 --> tests/ui-nightly/struct.rs:59:10
119 |
120 59 | #[derive(AsBytes)]
121 | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes2, true>`
122 |
123 = help: the trait `ShouldBe<true>` is implemented for `HasPadding<AsBytes2, true>`
124 = help: see issue #48214
125 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
126 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
127
128 error[E0277]: the trait bound `HasPadding<AsBytes3, true>: ShouldBe<false>` is not satisfied
129 --> tests/ui-nightly/struct.rs:66:10
130 |
131 66 | #[derive(AsBytes)]
132 | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes3, true>`
133 |
134 = help: the trait `ShouldBe<true>` is implemented for `HasPadding<AsBytes3, true>`
135 = help: see issue #48214
136 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
137 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
138
139 error[E0587]: type has conflicting packed and align representation hints
140 --> tests/ui-nightly/struct.rs:91:1
141 |
142 91 | struct Unaligned3;
143 | ^^^^^^^^^^^^^^^^^