Debian Codegraph @

debian/rust-vendor/zerocopy-derive/tests/ui/derive_transparent.msrv.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::TryFromBytes` is not satisfied
2 --> $DIR/derive_transparent.rs:35:1
3 |
4 35 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy_renamed::TryFromBytes` is not implemented for `NotZerocopy`
6 |
7 note: required because of the requirements on the impl of `zerocopy_renamed::TryFromBytes` for `TransparentStruct<NotZerocopy>`
8 --> $DIR/derive_transparent.rs:24:21
9 |
10 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
11 | ^^^^^^^^^
12 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
13 --> $DIR/derive_transparent.rs:35:1
14 |
15 35 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes);
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
17 = note: this error originates in the macro `::static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
18
19 error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied
20 --> $DIR/derive_transparent.rs:38:1
21 |
22 38 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros);
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromZeros` is not implemented for `NotZerocopy`
24 |
25 note: required because of the requirements on the impl of `FromZeros` for `TransparentStruct<NotZerocopy>`
26 --> $DIR/derive_transparent.rs:24:21
27 |
28 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
29 | ^^^^^^^^^
30 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
31 --> $DIR/derive_transparent.rs:38:1
32 |
33 38 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros);
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
35 = note: this error originates in the macro `::static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
36
37 error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::FromBytes` is not satisfied
38 --> $DIR/derive_transparent.rs:41:1
39 |
40 41 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy_renamed::FromBytes` is not implemented for `NotZerocopy`
42 |
43 note: required because of the requirements on the impl of `zerocopy_renamed::FromBytes` for `TransparentStruct<NotZerocopy>`
44 --> $DIR/derive_transparent.rs:24:21
45 |
46 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
47 | ^^^^^^^^^
48 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
49 --> $DIR/derive_transparent.rs:41:1
50 |
51 41 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
53 = note: this error originates in the macro `::static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
54
55 error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::IntoBytes` is not satisfied
56 --> $DIR/derive_transparent.rs:44:1
57 |
58 44 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes);
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy_renamed::IntoBytes` is not implemented for `NotZerocopy`
60 |
61 note: required because of the requirements on the impl of `zerocopy_renamed::IntoBytes` for `TransparentStruct<NotZerocopy>`
62 --> $DIR/derive_transparent.rs:24:10
63 |
64 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
65 | ^^^^^^^^^
66 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
67 --> $DIR/derive_transparent.rs:44:1
68 |
69 44 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes);
70 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
71 = note: this error originates in the macro `::static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
72
73 error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::Unaligned` is not satisfied
74 --> $DIR/derive_transparent.rs:47:1
75 |
76 47 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy_renamed::Unaligned` is not implemented for `NotZerocopy`
78 |
79 note: required because of the requirements on the impl of `zerocopy_renamed::Unaligned` for `TransparentStruct<NotZerocopy>`
80 --> $DIR/derive_transparent.rs:24:32
81 |
82 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
83 | ^^^^^^^^^
84 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
85 --> $DIR/derive_transparent.rs:47:1
86 |
87 47 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
88 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
89 = note: this error originates in the macro `::static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
90
91 error: aborting due to 5 previous errors
92
93 For more information about this error, try `rustc --explain E0277`.