Debian Codegraph @

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