• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied
2  --> tests/ui-stable/derive_transparent.rs:34:23
3   |
434 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes);
5   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy`
6   |
7   = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
8   = help: the following other types implement trait `zerocopy::TryFromBytes`:
9             ()
10             *const T
11             *mut T
12             AU16
13             AtomicBool
14             AtomicI16
15             AtomicI32
16             AtomicI64
17           and $N others
18note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy::TryFromBytes`
19  --> tests/ui-stable/derive_transparent.rs:24:21
20   |
2124 | #[derive(IntoBytes, FromBytes, Unaligned)]
22   |                     ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
23note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
24  --> tests/ui-stable/derive_transparent.rs:34:1
25   |
2634 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes);
27   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
28   = note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
29
30error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied
31  --> tests/ui-stable/derive_transparent.rs:35:23
32   |
3335 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros);
34   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromZeros` is not implemented for `NotZerocopy`
35   |
36   = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy`
37   = help: the following other types implement trait `FromZeros`:
38             ()
39             *const T
40             *mut T
41             AU16
42             AtomicBool
43             AtomicI16
44             AtomicI32
45             AtomicI64
46           and $N others
47note: required for `TransparentStruct<NotZerocopy>` to implement `FromZeros`
48  --> tests/ui-stable/derive_transparent.rs:24:21
49   |
5024 | #[derive(IntoBytes, FromBytes, Unaligned)]
51   |                     ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
52note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
53  --> tests/ui-stable/derive_transparent.rs:35:1
54   |
5535 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros);
56   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
57   = note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
58
59error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfied
60  --> tests/ui-stable/derive_transparent.rs:36:23
61   |
6236 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
63   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy`
64   |
65   = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy`
66   = help: the following other types implement trait `zerocopy::FromBytes`:
67             ()
68             AU16
69             AtomicI16
70             AtomicI32
71             AtomicI64
72             AtomicI8
73             AtomicIsize
74             AtomicU16
75           and $N others
76note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy::FromBytes`
77  --> tests/ui-stable/derive_transparent.rs:24:21
78   |
7924 | #[derive(IntoBytes, FromBytes, Unaligned)]
80   |                     ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
81note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
82  --> tests/ui-stable/derive_transparent.rs:36:1
83   |
8436 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
85   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
86   = note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
87
88error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not satisfied
89  --> tests/ui-stable/derive_transparent.rs:37:23
90   |
9137 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes);
92   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy`
93   |
94   = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy`
95   = help: the following other types implement trait `zerocopy::IntoBytes`:
96             ()
97             AU16
98             AtomicBool
99             AtomicI16
100             AtomicI32
101             AtomicI64
102             AtomicI8
103             AtomicIsize
104           and $N others
105note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy::IntoBytes`
106  --> tests/ui-stable/derive_transparent.rs:24:10
107   |
10824 | #[derive(IntoBytes, FromBytes, Unaligned)]
109   |          ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
110note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
111  --> tests/ui-stable/derive_transparent.rs:37:1
112   |
11337 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes);
114   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
115   = note: this error originates in the derive macro `IntoBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
116
117error[E0277]: the trait bound `NotZerocopy: zerocopy::Unaligned` is not satisfied
118  --> tests/ui-stable/derive_transparent.rs:38:23
119   |
12038 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
121   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy`
122   |
123   = note: Consider adding `#[derive(Unaligned)]` to `NotZerocopy`
124   = help: the following other types implement trait `zerocopy::Unaligned`:
125             ()
126             AtomicBool
127             AtomicI8
128             AtomicU8
129             F32<O>
130             F64<O>
131             I128<O>
132             I16<O>
133           and $N others
134note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy::Unaligned`
135  --> tests/ui-stable/derive_transparent.rs:24:32
136   |
13724 | #[derive(IntoBytes, FromBytes, Unaligned)]
138   |                                ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
139note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
140  --> tests/ui-stable/derive_transparent.rs:38:1
141   |
14238 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
143   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
144   = note: this error originates in the derive macro `Unaligned` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
145