blob: cc882bcc62b27071452c2c9b64139c3c6aee331d [file] [log] [blame]
error[E0277]: the trait bound `NotZerocopy: Unaligned` is not satisfied
--> tests/ui-stable/diagnostic-not-implemented-unaligned.rs:18:23
|
18 | takes_unaligned::<NotZerocopy>();
| ^^^^^^^^^^^ the trait `Unaligned` is not implemented for `NotZerocopy`
|
= note: Consider adding `#[derive(Unaligned)]` to `NotZerocopy`
= help: the following other types implement trait `Unaligned`:
()
AtomicBool
AtomicI8
AtomicU8
F32<O>
F64<O>
I128<O>
I16<O>
and $N others
note: required by a bound in `takes_unaligned`
--> tests/ui-stable/diagnostic-not-implemented-unaligned.rs:21:23
|
21 | fn takes_unaligned<T: Unaligned>() {}
| ^^^^^^^^^ required by this bound in `takes_unaligned`