Debian Codegraph @

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

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