• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: the trait bound `NotZerocopy: zerocopy::KnownLayout` is not satisfied
2  --> tests/ui-nightly/diagnostic-not-implemented-known-layout.rs:18:26
3   |
418 |     takes_known_layout::<NotZerocopy>();
5   |                          ^^^^^^^^^^^ the trait `zerocopy::KnownLayout` is not implemented for `NotZerocopy`
6   |
7   = note: Consider adding `#[derive(KnownLayout)]` to `NotZerocopy`
8   = help: the following other types implement trait `zerocopy::KnownLayout`:
9             &T
10             &mut T
11             ()
12             *const T
13             *mut T
14             AU16
15             AtomicBool
16             AtomicI16
17           and $N others
18note: required by a bound in `takes_known_layout`
19  --> tests/ui-nightly/diagnostic-not-implemented-known-layout.rs:21:26
20   |
2121 | fn takes_known_layout<T: KnownLayout>() {}
22   |                          ^^^^^^^^^^^ required by this bound in `takes_known_layout`
23