| 1 |
error[E0277]: the trait bound `NotZerocopy: IntoBytes` is not satisfied |
| 2 |
--> tests/ui-stable/diagnostic-not-implemented-into-bytes.rs:16:24 |
| 3 |
| |
| 4 |
16 | takes_into_bytes::<NotZerocopy>(); |
| 5 |
| ^^^^^^^^^^^ unsatisfied trait bound |
| 6 |
| |
| 7 |
help: the trait `IntoBytes` is not implemented for `NotZerocopy` |
| 8 |
--> tests/ui-stable/../include.rs |
| 9 |
| |
| 10 |
| pub struct NotZerocopy<T = ()>(pub T); |
| 11 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 |
= note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` |
| 13 |
= help: the following other types implement trait `IntoBytes`: |
| 14 |
() |
| 15 |
AU16 |
| 16 |
AtomicBool |
| 17 |
AtomicI16 |
| 18 |
AtomicI32 |
| 19 |
AtomicI64 |
| 20 |
AtomicI8 |
| 21 |
AtomicIsize |
| 22 |
and $N others |
| 23 |
note: required by a bound in `takes_into_bytes` |
| 24 |
--> tests/ui-stable/diagnostic-not-implemented-into-bytes.rs:19:24 |
| 25 |
| |
| 26 |
19 | fn takes_into_bytes<T: IntoBytes>() {} |
| 27 |
| ^^^^^^^^^ required by this bound in `takes_into_bytes` |