Debian Codegraph @

.cargo/vendor/zerocopy-derive/tests/ui-nightly/late_compile_pass.stderr

raw
1 warning: unused import: `zerocopy::KnownLayout`
2 --> tests/ui-nightly/late_compile_pass.rs:15:5
3 |
4 15 | use zerocopy::KnownLayout;
5 | ^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
8
9 error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied
10 --> tests/ui-nightly/late_compile_pass.rs:29:10
11 |
12 29 | #[derive(TryFromBytes)]
13 | ^^^^^^^^^^^^ unsatisfied trait bound
14 |
15 help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy`
16 --> tests/ui-nightly/../include.rs
17 |
18 | pub struct NotZerocopy<T = ()>(pub T);
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
21 = help: the following other types implement trait `zerocopy::TryFromBytes`:
22 ()
23 *const T
24 *mut T
25 AU16
26 AtomicBool
27 AtomicI16
28 AtomicI32
29 AtomicI64
30 and $N others
31 = help: see issue #48214
32 = note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
33 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
34 |
35 9 + #![feature(trivial_bounds)]
36 |
37
38 error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied
39 --> tests/ui-nightly/late_compile_pass.rs:38:10
40 |
41 38 | #[derive(FromZeros)]
42 | ^^^^^^^^^ unsatisfied trait bound
43 |
44 help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy`
45 --> tests/ui-nightly/../include.rs
46 |
47 | pub struct NotZerocopy<T = ()>(pub T);
48 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
50 = help: the following other types implement trait `zerocopy::TryFromBytes`:
51 ()
52 *const T
53 *mut T
54 AU16
55 AtomicBool
56 AtomicI16
57 AtomicI32
58 AtomicI64
59 and $N others
60 = help: see issue #48214
61 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
62 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
63 |
64 9 + #![feature(trivial_bounds)]
65 |
66
67 error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied
68 --> tests/ui-nightly/late_compile_pass.rs:38:10
69 |
70 38 | #[derive(FromZeros)]
71 | ^^^^^^^^^ unsatisfied trait bound
72 |
73 help: the trait `FromZeros` is not implemented for `NotZerocopy`
74 --> tests/ui-nightly/../include.rs
75 |
76 | pub struct NotZerocopy<T = ()>(pub T);
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78 = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy`
79 = help: the following other types implement trait `FromZeros`:
80 ()
81 *const T
82 *mut T
83 AU16
84 AtomicBool
85 AtomicI16
86 AtomicI32
87 AtomicI64
88 and $N others
89 = help: see issue #48214
90 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
91 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
92 |
93 9 + #![feature(trivial_bounds)]
94 |
95
96 error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied
97 --> tests/ui-nightly/late_compile_pass.rs:47:10
98 |
99 47 | #[derive(FromBytes)]
100 | ^^^^^^^^^ unsatisfied trait bound
101 |
102 help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy`
103 --> tests/ui-nightly/../include.rs
104 |
105 | pub struct NotZerocopy<T = ()>(pub T);
106 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
107 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
108 = help: the following other types implement trait `zerocopy::TryFromBytes`:
109 ()
110 *const T
111 *mut T
112 AU16
113 AtomicBool
114 AtomicI16
115 AtomicI32
116 AtomicI64
117 and $N others
118 = help: see issue #48214
119 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
120 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
121 |
122 9 + #![feature(trivial_bounds)]
123 |
124
125 error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied
126 --> tests/ui-nightly/late_compile_pass.rs:47:10
127 |
128 47 | #[derive(FromBytes)]
129 | ^^^^^^^^^ unsatisfied trait bound
130 |
131 help: the trait `FromZeros` is not implemented for `NotZerocopy`
132 --> tests/ui-nightly/../include.rs
133 |
134 | pub struct NotZerocopy<T = ()>(pub T);
135 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
136 = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy`
137 = help: the following other types implement trait `FromZeros`:
138 ()
139 *const T
140 *mut T
141 AU16
142 AtomicBool
143 AtomicI16
144 AtomicI32
145 AtomicI64
146 and $N others
147 = help: see issue #48214
148 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
149 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
150 |
151 9 + #![feature(trivial_bounds)]
152 |
153
154 error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfied
155 --> tests/ui-nightly/late_compile_pass.rs:47:10
156 |
157 47 | #[derive(FromBytes)]
158 | ^^^^^^^^^ unsatisfied trait bound
159 |
160 help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy`
161 --> tests/ui-nightly/../include.rs
162 |
163 | pub struct NotZerocopy<T = ()>(pub T);
164 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
165 = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy`
166 = help: the following other types implement trait `zerocopy::FromBytes`:
167 ()
168 AU16
169 AtomicI16
170 AtomicI32
171 AtomicI64
172 AtomicI8
173 AtomicIsize
174 AtomicU16
175 and $N others
176 = help: see issue #48214
177 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
178 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
179 |
180 9 + #![feature(trivial_bounds)]
181 |
182
183 error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not satisfied
184 --> tests/ui-nightly/late_compile_pass.rs:56:10
185 |
186 56 | #[derive(IntoBytes)]
187 | ^^^^^^^^^ unsatisfied trait bound
188 |
189 help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy`
190 --> tests/ui-nightly/../include.rs
191 |
192 | pub struct NotZerocopy<T = ()>(pub T);
193 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
194 = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy`
195 = help: the following other types implement trait `zerocopy::IntoBytes`:
196 ()
197 AU16
198 AtomicBool
199 AtomicI16
200 AtomicI32
201 AtomicI64
202 AtomicI8
203 AtomicIsize
204 and $N others
205 = help: see issue #48214
206 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
207 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
208 |
209 9 + #![feature(trivial_bounds)]
210 |
211
212 error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied
213 --> tests/ui-nightly/late_compile_pass.rs:66:10
214 |
215 66 | #[derive(Unaligned)]
216 | ^^^^^^^^^ unsatisfied trait bound
217 |
218 help: the trait `zerocopy::Unaligned` is not implemented for `AU16`
219 --> tests/ui-nightly/../include.rs
220 |
221 | pub struct AU16(pub u16);
222 | ^^^^^^^^^^^^^^^
223 = note: Consider adding `#[derive(Unaligned)]` to `AU16`
224 = help: the following other types implement trait `zerocopy::Unaligned`:
225 ()
226 AtomicBool
227 AtomicI8
228 AtomicU8
229 Cell<T>
230 F32<O>
231 F64<O>
232 I128<O>
233 and $N others
234 = help: see issue #48214
235 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
236 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
237 |
238 9 + #![feature(trivial_bounds)]
239 |
240
241 error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied
242 --> tests/ui-nightly/late_compile_pass.rs:74:10
243 |
244 74 | #[derive(Unaligned)]
245 | ^^^^^^^^^ unsatisfied trait bound
246 |
247 help: the trait `zerocopy::Unaligned` is not implemented for `AU16`
248 --> tests/ui-nightly/../include.rs
249 |
250 | pub struct AU16(pub u16);
251 | ^^^^^^^^^^^^^^^
252 = note: Consider adding `#[derive(Unaligned)]` to `AU16`
253 = help: the following other types implement trait `zerocopy::Unaligned`:
254 ()
255 AtomicBool
256 AtomicI8
257 AtomicU8
258 Cell<T>
259 F32<O>
260 F64<O>
261 I128<O>
262 and $N others
263 = help: see issue #48214
264 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
265 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
266 |
267 9 + #![feature(trivial_bounds)]
268 |
269
270 error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied
271 --> tests/ui-nightly/late_compile_pass.rs:81:10
272 |
273 81 | #[derive(Unaligned)]
274 | ^^^^^^^^^ unsatisfied trait bound
275 |
276 help: the trait `zerocopy::Unaligned` is not implemented for `AU16`
277 --> tests/ui-nightly/../include.rs
278 |
279 | pub struct AU16(pub u16);
280 | ^^^^^^^^^^^^^^^
281 = note: Consider adding `#[derive(Unaligned)]` to `AU16`
282 = help: the following other types implement trait `zerocopy::Unaligned`:
283 ()
284 AtomicBool
285 AtomicI8
286 AtomicU8
287 Cell<T>
288 F32<O>
289 F64<O>
290 I128<O>
291 and $N others
292 = help: see issue #48214
293 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
294 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
295 |
296 9 + #![feature(trivial_bounds)]
297 |
298
299 error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfied
300 --> tests/ui-nightly/late_compile_pass.rs:47:10
301 |
302 47 | #[derive(FromBytes)]
303 | ^^^^^^^^^ unsatisfied trait bound
304 |
305 help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy`
306 --> tests/ui-nightly/../include.rs
307 |
308 | pub struct NotZerocopy<T = ()>(pub T);
309 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
310 = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy`
311 = help: the following other types implement trait `zerocopy::FromBytes`:
312 ()
313 AU16
314 AtomicI16
315 AtomicI32
316 AtomicI64
317 AtomicI8
318 AtomicIsize
319 AtomicU16
320 and $N others
321 note: required for `FromBytes1` to implement `zerocopy::FromBytes`
322 --> tests/ui-nightly/late_compile_pass.rs:47:10
323 |
324 47 | #[derive(FromBytes)]
325 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
326 note: required by a bound in `<FromBytes1 as zerocopy::TryFromBytes>::is_bit_valid::assert_is_from_bytes`
327 --> tests/ui-nightly/late_compile_pass.rs:47:10
328 |
329 47 | #[derive(FromBytes)]
330 | ^^^^^^^^^ required by this bound in `assert_is_from_bytes`
331 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)