Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-known-layout.stderr

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