Debian Codegraph @

debian/rust-vendor/zerocopy/tests/ui/diagnostic-not-implemented.nightly.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy: FromBytes` is not satisfied
2 --> $DIR/diagnostic-not-implemented.rs:16:24
3 |
4 16 | takes_from_bytes::<NotZerocopy>();
5 | ^^^^^^^^^^^ unsatisfied trait bound
6 |
7 help: the trait `FromBytes` is not implemented for `NotZerocopy`
8 --> $DIR/../include.rs:15:5
9 |
10 15 | pub struct NotZerocopy<T = ()>(pub T);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy`
13 = help: the following other types implement trait `FromBytes`:
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 79 others
23 note: required by a bound in `takes_from_bytes`
24 --> $DIR/diagnostic-not-implemented.rs:77:24
25 |
26 77 | fn takes_from_bytes<T: FromBytes>() {}
27 | ^^^^^^^^^ required by this bound in `takes_from_bytes`
28 = note: the full name for the type has been written to '/long-type-HASH.txt'
29 = note: consider using `--verbose` to print the full type name to the console
30
31 error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied
32 --> $DIR/diagnostic-not-implemented.rs:18:24
33 |
34 18 | takes_from_zeros::<NotZerocopy>();
35 | ^^^^^^^^^^^ unsatisfied trait bound
36 |
37 help: the trait `FromZeros` is not implemented for `NotZerocopy`
38 --> $DIR/../include.rs:15:5
39 |
40 15 | pub struct NotZerocopy<T = ()>(pub T);
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42 = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy`
43 = help: the following other types implement trait `FromZeros`:
44 ()
45 (A, B)
46 (A, B, C)
47 (A, B, C, D)
48 (A, B, C, D, E)
49 (A, B, C, D, E, F)
50 (A, B, C, D, E, F, G)
51 (A, B, C, D, E, F, G, H)
52 and 141 others
53 note: required by a bound in `takes_from_zeros`
54 --> $DIR/diagnostic-not-implemented.rs:78:24
55 |
56 78 | fn takes_from_zeros<T: FromZeros>() {}
57 | ^^^^^^^^^ required by this bound in `takes_from_zeros`
58 = note: the full name for the type has been written to '/long-type-HASH.txt'
59 = note: consider using `--verbose` to print the full type name to the console
60
61 error[E0277]: the trait bound `NotZerocopy: Immutable` is not satisfied
62 --> $DIR/diagnostic-not-implemented.rs:20:23
63 |
64 20 | takes_immutable::<NotZerocopy>();
65 | ^^^^^^^^^^^ unsatisfied trait bound
66 |
67 help: the trait `Immutable` is not implemented for `NotZerocopy`
68 --> $DIR/../include.rs:15:5
69 |
70 15 | pub struct NotZerocopy<T = ()>(pub T);
71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72 = note: Consider adding `#[derive(Immutable)]` to `NotZerocopy`
73 = help: the following other types implement trait `Immutable`:
74 &T
75 &mut T
76 ()
77 (A, B)
78 (A, B, C)
79 (A, B, C, D)
80 (A, B, C, D, E)
81 (A, B, C, D, E, F)
82 and 128 others
83 note: required by a bound in `takes_immutable`
84 --> $DIR/diagnostic-not-implemented.rs:79:23
85 |
86 79 | fn takes_immutable<T: Immutable>() {}
87 | ^^^^^^^^^ required by this bound in `takes_immutable`
88 = note: the full name for the type has been written to '/long-type-HASH.txt'
89 = note: consider using `--verbose` to print the full type name to the console
90
91 error[E0277]: the trait bound `NotZerocopy: IntoBytes` is not satisfied
92 --> $DIR/diagnostic-not-implemented.rs:22:24
93 |
94 22 | takes_into_bytes::<NotZerocopy>();
95 | ^^^^^^^^^^^ unsatisfied trait bound
96 |
97 help: the trait `IntoBytes` is not implemented for `NotZerocopy`
98 --> $DIR/../include.rs:15:5
99 |
100 15 | pub struct NotZerocopy<T = ()>(pub T);
101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102 = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy`
103 = help: the following other types implement trait `IntoBytes`:
104 ()
105 AU16
106 AtomicBool
107 AtomicI16
108 AtomicI32
109 AtomicI64
110 AtomicI8
111 AtomicIsize
112 and 68 others
113 note: required by a bound in `takes_into_bytes`
114 --> $DIR/diagnostic-not-implemented.rs:80:24
115 |
116 80 | fn takes_into_bytes<T: IntoBytes>() {}
117 | ^^^^^^^^^ required by this bound in `takes_into_bytes`
118
119 error[E0277]: the trait bound `NotZerocopy: KnownLayout` is not satisfied
120 --> $DIR/diagnostic-not-implemented.rs:24:26
121 |
122 24 | takes_known_layout::<NotZerocopy>();
123 | ^^^^^^^^^^^ unsatisfied trait bound
124 |
125 help: the trait `KnownLayout` is not implemented for `NotZerocopy`
126 --> $DIR/../include.rs:15:5
127 |
128 15 | pub struct NotZerocopy<T = ()>(pub T);
129 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130 = note: Consider adding `#[derive(KnownLayout)]` to `NotZerocopy`
131 = help: the following other types implement trait `KnownLayout`:
132 &T
133 &mut T
134 ()
135 *const T
136 *mut T
137 AU16
138 AtomicBool
139 AtomicI16
140 and 65 others
141 note: required by a bound in `takes_known_layout`
142 --> $DIR/diagnostic-not-implemented.rs:81:26
143 |
144 81 | fn takes_known_layout<T: KnownLayout>() {}
145 | ^^^^^^^^^^^ required by this bound in `takes_known_layout`
146
147 error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
148 --> $DIR/diagnostic-not-implemented.rs:26:28
149 |
150 26 | takes_try_from_bytes::<NotZerocopy>();
151 | ^^^^^^^^^^^ unsatisfied trait bound
152 |
153 help: the trait `TryFromBytes` is not implemented for `NotZerocopy`
154 --> $DIR/../include.rs:15:5
155 |
156 15 | pub struct NotZerocopy<T = ()>(pub T);
157 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
159 = help: the following other types implement trait `TryFromBytes`:
160 ()
161 (A, B)
162 (A, B, C)
163 (A, B, C, D)
164 (A, B, C, D, E)
165 (A, B, C, D, E, F)
166 (A, B, C, D, E, F, G)
167 (A, B, C, D, E, F, G, H)
168 and 153 others
169 note: required by a bound in `takes_try_from_bytes`
170 --> $DIR/diagnostic-not-implemented.rs:82:28
171 |
172 82 | fn takes_try_from_bytes<T: TryFromBytes>() {}
173 | ^^^^^^^^^^^^ required by this bound in `takes_try_from_bytes`
174 = note: the full name for the type has been written to '/long-type-HASH.txt'
175 = note: consider using `--verbose` to print the full type name to the console
176
177 error[E0277]: the trait bound `NotZerocopy: zerocopy::Unaligned` is not satisfied
178 --> $DIR/diagnostic-not-implemented.rs:28:23
179 |
180 28 | takes_unaligned::<NotZerocopy>();
181 | ^^^^^^^^^^^ unsatisfied trait bound
182 |
183 help: the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy`
184 --> $DIR/../include.rs:15:5
185 |
186 15 | pub struct NotZerocopy<T = ()>(pub T);
187 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
188 = note: Consider adding `#[derive(Unaligned)]` to `NotZerocopy`
189 = help: the following other types implement trait `zerocopy::Unaligned`:
190 ()
191 AtomicBool
192 AtomicI8
193 AtomicU8
194 Cell<T>
195 F32<O>
196 F64<O>
197 I128<O>
198 and 26 others
199 note: required by a bound in `takes_unaligned`
200 --> $DIR/diagnostic-not-implemented.rs:83:23
201 |
202 83 | fn takes_unaligned<T: Unaligned>() {}
203 | ^^^^^^^^^ required by this bound in `takes_unaligned`
204
205 error[E0277]: the trait bound `NotZerocopy: Immutable` is not satisfied
206 --> $DIR/diagnostic-not-implemented.rs:66:19
207 |
208 66 | Foo.write_obj(NotZerocopy(()));
209 | --------- ^^^^^^^^^^^^^^^ the trait `Immutable` is not implemented for `NotZerocopy`
210 | |
211 | required by a bound introduced by this call
212 |
213 note: required by a bound in `Foo::write_obj`
214 --> $DIR/diagnostic-not-implemented.rs:73:25
215 |
216 73 | fn write_obj<T: Immutable + IntoBytes>(&mut self, _val: T) {}
217 | ^^^^^^^^^ required by this bound in `Foo::write_obj`
218 help: consider borrowing here
219 |
220 66 | Foo.write_obj(&NotZerocopy(()));
221 | +
222 66 | Foo.write_obj(&mut NotZerocopy(()));
223 | ++++
224
225 error[E0277]: the trait bound `NotZerocopy: IntoBytes` is not satisfied
226 --> $DIR/diagnostic-not-implemented.rs:66:19
227 |
228 66 | Foo.write_obj(NotZerocopy(()));
229 | --------- ^^^^^^^^^^^^^^^ unsatisfied trait bound
230 | |
231 | required by a bound introduced by this call
232 |
233 help: the trait `IntoBytes` is not implemented for `NotZerocopy`
234 --> $DIR/../include.rs:15:5
235 |
236 15 | pub struct NotZerocopy<T = ()>(pub T);
237 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
238 = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy`
239 = help: the following other types implement trait `IntoBytes`:
240 ()
241 AU16
242 AtomicBool
243 AtomicI16
244 AtomicI32
245 AtomicI64
246 AtomicI8
247 AtomicIsize
248 and 68 others
249 note: required by a bound in `Foo::write_obj`
250 --> $DIR/diagnostic-not-implemented.rs:73:37
251 |
252 73 | fn write_obj<T: Immutable + IntoBytes>(&mut self, _val: T) {}
253 | ^^^^^^^^^ required by this bound in `Foo::write_obj`
254
255 error: aborting due to 9 previous errors
256
257 For more information about this error, try `rustc --explain E0277`.