Debian Codegraph @

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

raw
1 error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::TryFromBytes` is not satisfied
2 --> $DIR/derive_transparent.rs:35:23
3 |
4 35 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
6 |
7 help: the trait `zerocopy_renamed::TryFromBytes` is not implemented for `NotZerocopy`
8 --> $DIR/../include.rs:48:5
9 |
10 48 | pub struct NotZerocopy<T = ()>(pub T);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
13 = help: the following other types implement trait `zerocopy_renamed::TryFromBytes`:
14 ()
15 (A, B)
16 (A, B, C)
17 (A, B, C, D)
18 (A, B, C, D, E)
19 (A, B, C, D, E, F)
20 (A, B, C, D, E, F, G)
21 (A, B, C, D, E, F, G, H)
22 and 154 others
23 note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy_renamed::TryFromBytes`
24 --> $DIR/derive_transparent.rs:24:21
25 |
26 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
27 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
28 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
29 --> $DIR/../include.rs:74:17
30 |
31 74 | ::static_assertions::assert_impl_all!($type: $($trait),+);
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
33 |
34 ::: $DIR/derive_transparent.rs:35:1
35 |
36 35 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes);
37 | ------------------------------------------------------------------- in this macro invocation
38 = note: the full name for the type has been written to '/long-type-HASH.txt'
39 = note: consider using `--verbose` to print the full type name to the console
40 = 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)
41
42 error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied
43 --> $DIR/derive_transparent.rs:38:23
44 |
45 38 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros);
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
47 |
48 help: the trait `FromZeros` is not implemented for `NotZerocopy`
49 --> $DIR/../include.rs:48:5
50 |
51 48 | pub struct NotZerocopy<T = ()>(pub T);
52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53 = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy`
54 = help: the following other types implement trait `FromZeros`:
55 ()
56 (A, B)
57 (A, B, C)
58 (A, B, C, D)
59 (A, B, C, D, E)
60 (A, B, C, D, E, F)
61 (A, B, C, D, E, F, G)
62 (A, B, C, D, E, F, G, H)
63 and 142 others
64 note: required for `TransparentStruct<NotZerocopy>` to implement `FromZeros`
65 --> $DIR/derive_transparent.rs:24:21
66 |
67 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
68 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
69 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
70 --> $DIR/../include.rs:74:17
71 |
72 74 | ::static_assertions::assert_impl_all!($type: $($trait),+);
73 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
74 |
75 ::: $DIR/derive_transparent.rs:38:1
76 |
77 38 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros);
78 | ---------------------------------------------------------------- in this macro invocation
79 = note: the full name for the type has been written to '/long-type-HASH.txt'
80 = note: consider using `--verbose` to print the full type name to the console
81 = 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)
82
83 error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::FromBytes` is not satisfied
84 --> $DIR/derive_transparent.rs:41:23
85 |
86 41 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
87 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
88 |
89 help: the trait `zerocopy_renamed::FromBytes` is not implemented for `NotZerocopy`
90 --> $DIR/../include.rs:48:5
91 |
92 48 | pub struct NotZerocopy<T = ()>(pub T);
93 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94 = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy`
95 = help: the following other types implement trait `zerocopy_renamed::FromBytes`:
96 ()
97 (A, B)
98 (A, B, C)
99 (A, B, C, D)
100 (A, B, C, D, E)
101 (A, B, C, D, E, F)
102 (A, B, C, D, E, F, G)
103 (A, B, C, D, E, F, G, H)
104 and 80 others
105 note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy_renamed::FromBytes`
106 --> $DIR/derive_transparent.rs:24:21
107 |
108 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
109 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
110 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
111 --> $DIR/../include.rs:74:17
112 |
113 74 | ::static_assertions::assert_impl_all!($type: $($trait),+);
114 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
115 |
116 ::: $DIR/derive_transparent.rs:41:1
117 |
118 41 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
119 | ---------------------------------------------------------------- in this macro invocation
120 = note: the full name for the type has been written to '/long-type-HASH.txt'
121 = note: consider using `--verbose` to print the full type name to the console
122 = 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)
123
124 error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::IntoBytes` is not satisfied
125 --> $DIR/derive_transparent.rs:44:23
126 |
127 44 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes);
128 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
129 |
130 help: the trait `zerocopy_renamed::IntoBytes` is not implemented for `NotZerocopy`
131 --> $DIR/../include.rs:48:5
132 |
133 48 | pub struct NotZerocopy<T = ()>(pub T);
134 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
135 = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy`
136 = help: the following other types implement trait `zerocopy_renamed::IntoBytes`:
137 ()
138 AU16
139 AtomicBool
140 AtomicI16
141 AtomicI32
142 AtomicI64
143 AtomicI8
144 AtomicIsize
145 and 69 others
146 note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy_renamed::IntoBytes`
147 --> $DIR/derive_transparent.rs:24:10
148 |
149 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
150 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
151 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
152 --> $DIR/../include.rs:74:17
153 |
154 74 | ::static_assertions::assert_impl_all!($type: $($trait),+);
155 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
156 |
157 ::: $DIR/derive_transparent.rs:44:1
158 |
159 44 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes);
160 | ---------------------------------------------------------------- in this macro invocation
161 = 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)
162
163 error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::Unaligned` is not satisfied
164 --> $DIR/derive_transparent.rs:47:23
165 |
166 47 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
167 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
168 |
169 help: the trait `zerocopy_renamed::Unaligned` is not implemented for `NotZerocopy`
170 --> $DIR/../include.rs:48:5
171 |
172 48 | pub struct NotZerocopy<T = ()>(pub T);
173 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
174 = note: Consider adding `#[derive(Unaligned)]` to `NotZerocopy`
175 = help: the following other types implement trait `zerocopy_renamed::Unaligned`:
176 ()
177 AtomicBool
178 AtomicI8
179 AtomicU8
180 Cell<T>
181 F32<O>
182 F64<O>
183 I128<O>
184 and 27 others
185 note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy_renamed::Unaligned`
186 --> $DIR/derive_transparent.rs:24:32
187 |
188 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
189 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
190 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
191 --> $DIR/../include.rs:74:17
192 |
193 74 | ::static_assertions::assert_impl_all!($type: $($trait),+);
194 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
195 |
196 ::: $DIR/derive_transparent.rs:47:1
197 |
198 47 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
199 | ---------------------------------------------------------------- in this macro invocation
200 = 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)
201
202 error: aborting due to 5 previous errors
203
204 For more information about this error, try `rustc --explain E0277`.