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