Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-zeros.stderr

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