Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-unaligned.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy: zerocopy::Unaligned` is not satisfied
2 --> tests/ui-nightly/diagnostic-not-implemented-unaligned.rs:18:23
3 |
4 18 | takes_unaligned::<NotZerocopy>();
5 | ^^^^^^^^^^^ unsatisfied trait bound
6 |
7 help: the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy`
8 --> tests/ui-nightly/../../zerocopy-derive/tests/include.rs
9 |
10 | pub struct NotZerocopy<T = ()>(pub T);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = note: Consider adding `#[derive(Unaligned)]` to `NotZerocopy`
13 = help: the following other types implement trait `zerocopy::Unaligned`:
14 ()
15 AtomicBool
16 AtomicI8
17 AtomicU8
18 Cell<T>
19 F32<O>
20 F64<O>
21 I128<O>
22 and $N others
23 note: required by a bound in `takes_unaligned`
24 --> tests/ui-nightly/diagnostic-not-implemented-unaligned.rs:21:23
25 |
26 21 | fn takes_unaligned<T: Unaligned>() {}
27 | ^^^^^^^^^ required by this bound in `takes_unaligned`