| 1 |
error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied |
| 2 |
--> tests/ui-stable/diagnostic-not-implemented-try-from-bytes.rs:18:28 |
| 3 |
| |
| 4 |
18 | takes_try_from_bytes::<NotZerocopy>(); |
| 5 |
| ^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` |
| 6 |
| |
| 7 |
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` |
| 8 |
= help: the following other types implement trait `zerocopy::TryFromBytes`: |
| 9 |
() |
| 10 |
*const T |
| 11 |
*mut T |
| 12 |
AU16 |
| 13 |
AtomicBool |
| 14 |
AtomicI16 |
| 15 |
AtomicI32 |
| 16 |
AtomicI64 |
| 17 |
and $N others |
| 18 |
note: required by a bound in `takes_try_from_bytes` |
| 19 |
--> tests/ui-stable/diagnostic-not-implemented-try-from-bytes.rs:21:28 |
| 20 |
| |
| 21 |
21 | fn takes_try_from_bytes<T: TryFromBytes>() {} |
| 22 |
| ^^^^^^^^^^^^ required by this bound in `takes_try_from_bytes` |