Debian Codegraph @

debian/missing-sources/zerocopy/tests/ui-stable/diagnostic-not-implemented-known-layout.stderr

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