| 1 |
error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied |
| 2 |
--> tests/ui-stable/diagnostic-not-implemented-from-zeros.rs:18:24 |
| 3 |
| |
| 4 |
18 | takes_from_zeros::<NotZerocopy>(); |
| 5 |
| ^^^^^^^^^^^ the trait `FromZeros` is not implemented for `NotZerocopy` |
| 6 |
| |
| 7 |
= note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy` |
| 8 |
= help: the following other types implement trait `FromZeros`: |
| 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_from_zeros` |
| 19 |
--> tests/ui-stable/diagnostic-not-implemented-from-zeros.rs:21:24 |
| 20 |
| |
| 21 |
21 | fn takes_from_zeros<T: FromZeros>() {} |
| 22 |
| ^^^^^^^^^ required by this bound in `takes_from_zeros` |