Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-bytes.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfied
2 --> tests/ui-stable/diagnostic-not-implemented-from-bytes.rs:18:24
3 |
4 18 | 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
18 note: required by a bound in `takes_from_bytes`
19 --> tests/ui-stable/diagnostic-not-implemented-from-bytes.rs:21:24
20 |
21 21 | fn takes_from_bytes<T: FromBytes>() {}
22 | ^^^^^^^^^ required by this bound in `takes_from_bytes`