error[E0277]: the trait bound `NotZerocopy: KnownLayout` is not satisfied --> tests/ui-nightly/diagnostic-not-implemented-known-layout.rs:16:26 | 16 | takes_known_layout::(); | ^^^^^^^^^^^ unsatisfied trait bound | help: the trait `KnownLayout` is not implemented for `NotZerocopy` --> tests/ui-nightly/../include.rs | | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(KnownLayout)]` to `NotZerocopy` = help: the following other types implement trait `KnownLayout`: &T &mut T () *const T *mut T AU16 AtomicBool AtomicI16 and $N others note: required by a bound in `takes_known_layout` --> tests/ui-nightly/diagnostic-not-implemented-known-layout.rs:19:26 | 19 | fn takes_known_layout() {} | ^^^^^^^^^^^ required by this bound in `takes_known_layout`