Debian Codegraph @

debian/rust-vendor/zerocopy-derive/tests/ui/enum.stable.stderr

raw
1 error: unrecognized representation hint
2 --> $DIR/enum.rs:20:8
3 |
4 20 | #[repr("foo")]
5 | ^^^^^
6
7 error: unrecognized representation hint
8 --> $DIR/enum.rs:29:8
9 |
10 29 | #[repr(foo)]
11 | ^^^
12
13 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
14 --> $DIR/enum.rs:36:10
15 |
16 36 | #[derive(FromBytes)]
17 | ^^^^^^^^^
18 |
19 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
20
21 error: this conflicts with another representation hint
22 --> $DIR/enum.rs:46:12
23 |
24 46 | #[repr(u8, u16)]
25 | ^^^
26
27 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
28 --> $DIR/enum.rs:53:10
29 |
30 53 | #[derive(FromBytes)]
31 | ^^^^^^^^^
32 |
33 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
34
35 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
36 --> $DIR/enum.rs:88:1
37 |
38 88 | #[zerocopy(crate = "zerocopy_renamed")]
39 | ^
40
41 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
42 --> $DIR/enum.rs:95:1
43 |
44 95 | #[zerocopy(crate = "zerocopy_renamed")]
45 | ^
46
47 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
48 --> $DIR/enum.rs:117:1
49 |
50 117 | #[zerocopy(crate = "zerocopy_renamed")]
51 | ^
52
53 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
54 --> $DIR/enum.rs:124:1
55 |
56 124 | #[zerocopy(crate = "zerocopy_renamed")]
57 | ^
58
59 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
60 --> $DIR/enum.rs:132:1
61 |
62 132 | #[zerocopy(crate = "zerocopy_renamed")]
63 | ^
64
65 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
66 --> $DIR/enum.rs:140:1
67 |
68 140 | / #[zerocopy(crate = "zerocopy_renamed")]
69 141 | |
70 142 | | #[repr(u8)]
71 143 | | enum FromZeros4 {
72 144 | | A = 1,
73 145 | | B = 2,
74 146 | | }
75 | |_^
76
77 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
78 help: This enum has discriminants which are not literal integers. One of those may define or imply which variant has a discriminant of zero. Use a literal integer to define or imply the variant with a discriminant of zero.
79 --> $DIR/enum.rs:151:1
80 |
81 151 | / #[zerocopy(crate = "zerocopy_renamed")]
82 152 | |
83 153 | | #[repr(i8)]
84 154 | | enum FromZeros5 {
85 155 | | A = NEGATIVE_ONE,
86 156 | | B,
87 157 | | }
88 | |_^
89
90 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
91 --> $DIR/enum.rs:171:1
92 |
93 171 | / #[zerocopy(crate = "zerocopy_renamed")]
94 172 | |
95 173 | | #[repr(u8)]
96 174 | | enum FromZeros7 {
97 ... |
98 177 | | B(NotFromZeros),
99 178 | | }
100 | |_^
101
102 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
103 --> $DIR/enum.rs:184:10
104 |
105 184 | #[derive(FromBytes)]
106 | ^^^^^^^^^
107 |
108 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
109
110 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
111 --> $DIR/enum.rs:193:8
112 |
113 193 | #[repr(C)]
114 | ^
115
116 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
117 --> $DIR/enum.rs:201:8
118 |
119 201 | #[repr(usize)]
120 | ^^^^^
121
122 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
123 --> $DIR/enum.rs:209:8
124 |
125 209 | #[repr(isize)]
126 | ^^^^^
127
128 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
129 --> $DIR/enum.rs:217:8
130 |
131 217 | #[repr(u32)]
132 | ^^^
133
134 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
135 --> $DIR/enum.rs:225:8
136 |
137 225 | #[repr(i32)]
138 | ^^^
139
140 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
141 --> $DIR/enum.rs:233:8
142 |
143 233 | #[repr(u64)]
144 | ^^^
145
146 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
147 --> $DIR/enum.rs:241:8
148 |
149 241 | #[repr(i64)]
150 | ^^^
151
152 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
153 --> $DIR/enum.rs:515:10
154 |
155 515 | #[derive(Unaligned)]
156 | ^^^^^^^^^
157 |
158 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
159
160 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
161 --> $DIR/enum.rs:523:10
162 |
163 523 | #[derive(Unaligned)]
164 | ^^^^^^^^^
165 |
166 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
167
168 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
169 --> $DIR/enum.rs:531:10
170 |
171 531 | #[derive(Unaligned)]
172 | ^^^^^^^^^
173 |
174 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
175
176 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
177 --> $DIR/enum.rs:539:10
178 |
179 539 | #[derive(Unaligned)]
180 | ^^^^^^^^^
181 |
182 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
183
184 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
185 --> $DIR/enum.rs:547:10
186 |
187 547 | #[derive(Unaligned)]
188 | ^^^^^^^^^
189 |
190 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
191
192 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
193 --> $DIR/enum.rs:555:10
194 |
195 555 | #[derive(Unaligned)]
196 | ^^^^^^^^^
197 |
198 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
199
200 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
201 --> $DIR/enum.rs:563:10
202 |
203 563 | #[derive(Unaligned)]
204 | ^^^^^^^^^
205 |
206 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
207
208 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
209 --> $DIR/enum.rs:571:10
210 |
211 571 | #[derive(Unaligned)]
212 | ^^^^^^^^^
213 |
214 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
215
216 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
217 --> $DIR/enum.rs:579:10
218 |
219 579 | #[derive(Unaligned)]
220 | ^^^^^^^^^
221 |
222 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
223
224 error: cannot derive `Unaligned` on type with alignment greater than 1
225 --> $DIR/enum.rs:589:12
226 |
227 589 | #[repr(u8, align(2))]
228 | ^^^^^
229
230 error: cannot derive `Unaligned` on type with alignment greater than 1
231 --> $DIR/enum.rs:597:12
232 |
233 597 | #[repr(i8, align(2))]
234 | ^^^^^
235
236 error: this conflicts with another representation hint
237 --> $DIR/enum.rs:605:18
238 |
239 605 | #[repr(align(1), align(2))]
240 | ^^^^^
241
242 error: this conflicts with another representation hint
243 --> $DIR/enum.rs:613:18
244 |
245 613 | #[repr(align(2), align(4))]
246 | ^^^^^
247
248 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
249 --> $DIR/enum.rs:657:10
250 |
251 657 | #[derive(IntoBytes)]
252 | ^^^^^^^^^
253 |
254 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
255
256 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
257 --> $DIR/enum.rs:665:10
258 |
259 665 | #[derive(IntoBytes)]
260 | ^^^^^^^^^
261 |
262 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
263
264 error: generic parameters may not be used in const operations
265 --> $DIR/enum.rs:677:7
266 |
267 677 | A(T),
268 | ^ cannot perform const operation using `T`
269 |
270 = note: type parameters may not be used in const expressions
271
272 error[E0565]: meta item in `repr` must be an identifier
273 --> $DIR/enum.rs:20:1
274 |
275 20 | #[repr("foo")]
276 | ^^^^^^^^^^^^^^
277
278 error[E0552]: unrecognized representation hint
279 --> $DIR/enum.rs:29:8
280 |
281 29 | #[repr(foo)]
282 | ^^^
283 |
284 = help: valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
285 = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html?highlight=repr#representations>
286
287 error[E0566]: conflicting representation hints
288 --> $DIR/enum.rs:46:8
289 |
290 46 | #[repr(u8, u16)]
291 | ^^ ^^^
292 |
293 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
294 = note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585>
295 = note: `#[deny(conflicting_repr_hints)]` (part of `#[deny(future_incompatible)]`) on by default
296
297 error[E0277]: the trait bound `UnsafeCell<()>: Immutable` is not satisfied
298 --> $DIR/enum.rs:64:10
299 |
300 64 | #[derive(Immutable)]
301 | ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<()>`
302 |
303 = note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<()>`
304 = help: the following other types implement trait `Immutable`:
305 &T
306 &mut T
307 ()
308 (A, B)
309 (A, B, C)
310 (A, B, C, D)
311 (A, B, C, D, E)
312 (A, B, C, D, E, F)
313 and 137 others
314 = help: see issue #48214
315 = note: the full name for the type has been written to '/long-type-HASH.txt'
316 = note: consider using `--verbose` to print the full type name to the console
317 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
318
319 error[E0277]: the trait bound `UnsafeCell<u8>: Immutable` is not satisfied
320 --> $DIR/enum.rs:75:10
321 |
322 75 | #[derive(Immutable)]
323 | ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<u8>`
324 |
325 = note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<u8>`
326 = help: the following other types implement trait `Immutable`:
327 &T
328 &mut T
329 ()
330 (A, B)
331 (A, B, C)
332 (A, B, C, D)
333 (A, B, C, D, E)
334 (A, B, C, D, E, F)
335 and 137 others
336 = help: see issue #48214
337 = note: the full name for the type has been written to '/long-type-HASH.txt'
338 = note: consider using `--verbose` to print the full type name to the console
339 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
340
341 error[E0277]: the trait bound `NotTryFromBytes: TryFromBytes` is not satisfied
342 --> $DIR/enum.rs:104:10
343 |
344 104 | #[derive(TryFromBytes)]
345 | ^^^^^^^^^^^^ unsatisfied trait bound
346 |
347 help: the trait `TryFromBytes` is not implemented for `NotTryFromBytes`
348 --> $DIR/enum.rs:102:1
349 |
350 102 | struct NotTryFromBytes;
351 | ^^^^^^^^^^^^^^^^^^^^^^
352 = note: Consider adding `#[derive(TryFromBytes)]` to `NotTryFromBytes`
353 = help: the following other types implement trait `TryFromBytes`:
354 ()
355 (A, B)
356 (A, B, C)
357 (A, B, C, D)
358 (A, B, C, D, E)
359 (A, B, C, D, E, F)
360 (A, B, C, D, E, F, G)
361 (A, B, C, D, E, F, G, H)
362 and 157 others
363 = help: see issue #48214
364 = note: the full name for the type has been written to '/long-type-HASH.txt'
365 = note: consider using `--verbose` to print the full type name to the console
366 = note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
367
368 error[E0277]: the trait bound `NotFromZeros: TryFromBytes` is not satisfied
369 --> $DIR/enum.rs:161:10
370 |
371 161 | #[derive(FromZeros)]
372 | ^^^^^^^^^ unsatisfied trait bound
373 |
374 help: the trait `TryFromBytes` is not implemented for `NotFromZeros`
375 --> $DIR/enum.rs:159:1
376 |
377 159 | struct NotFromZeros;
378 | ^^^^^^^^^^^^^^^^^^^
379 = note: Consider adding `#[derive(TryFromBytes)]` to `NotFromZeros`
380 = help: the following other types implement trait `TryFromBytes`:
381 ()
382 (A, B)
383 (A, B, C)
384 (A, B, C, D)
385 (A, B, C, D, E)
386 (A, B, C, D, E, F)
387 (A, B, C, D, E, F, G)
388 (A, B, C, D, E, F, G, H)
389 and 157 others
390 = help: see issue #48214
391 = note: the full name for the type has been written to '/long-type-HASH.txt'
392 = note: consider using `--verbose` to print the full type name to the console
393 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
394
395 error[E0277]: the trait bound `NotFromZeros: FromZeros` is not satisfied
396 --> $DIR/enum.rs:161:10
397 |
398 161 | #[derive(FromZeros)]
399 | ^^^^^^^^^ unsatisfied trait bound
400 |
401 help: the trait `FromZeros` is not implemented for `NotFromZeros`
402 --> $DIR/enum.rs:159:1
403 |
404 159 | struct NotFromZeros;
405 | ^^^^^^^^^^^^^^^^^^^
406 = note: Consider adding `#[derive(FromZeros)]` to `NotFromZeros`
407 = help: the following other types implement trait `FromZeros`:
408 ()
409 (A, B)
410 (A, B, C)
411 (A, B, C, D)
412 (A, B, C, D, E)
413 (A, B, C, D, E, F)
414 (A, B, C, D, E, F, G)
415 (A, B, C, D, E, F, G, H)
416 and 142 others
417 = help: see issue #48214
418 = note: the full name for the type has been written to '/long-type-HASH.txt'
419 = note: consider using `--verbose` to print the full type name to the console
420 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
421
422 error[E0277]: the trait bound `bool: FromBytes` is not satisfied
423 --> $DIR/enum.rs:247:10
424 |
425 247 | #[derive(FromBytes)]
426 | ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool`
427 |
428 = note: Consider adding `#[derive(FromBytes)]` to `bool`
429 = help: the following other types implement trait `FromBytes`:
430 ()
431 (A, B)
432 (A, B, C)
433 (A, B, C, D)
434 (A, B, C, D, E)
435 (A, B, C, D, E, F)
436 (A, B, C, D, E, F, G)
437 (A, B, C, D, E, F, G, H)
438 and 79 others
439 = help: see issue #48214
440 = note: the full name for the type has been written to '/long-type-HASH.txt'
441 = note: consider using `--verbose` to print the full type name to the console
442 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
443
444 error[E0277]: `IntoBytes1` has 1 total byte(s) of padding
445 --> $DIR/enum.rs:623:10
446 |
447 623 | #[derive(IntoBytes)]
448 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
449 |
450 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
451 = note: consider adding explicit fields where padding would be
452 = note: consider using `#[repr(packed)]` to remove padding
453 help: the trait `PaddingFree<IntoBytes1, 1>` is not implemented for `()`
454 but trait `PaddingFree<IntoBytes1, 0>` is implemented for it
455 --> $WORKSPACE/src/util/macro_util.rs:64:1
456 |
457 64 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
458 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
459 = help: see issue #48214
460 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
461
462 error[E0277]: `IntoBytes2` has 3 total byte(s) of padding
463 --> $DIR/enum.rs:638:10
464 |
465 638 | #[derive(IntoBytes)]
466 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
467 |
468 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
469 = note: consider adding explicit fields where padding would be
470 = note: consider using `#[repr(packed)]` to remove padding
471 help: the trait `PaddingFree<IntoBytes2, 3>` is not implemented for `()`
472 but trait `PaddingFree<IntoBytes2, 0>` is implemented for it
473 --> $WORKSPACE/src/util/macro_util.rs:64:1
474 |
475 64 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
476 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
477 = help: see issue #48214
478 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
479
480 error[E0277]: `IntoBytes3` has 2 total byte(s) of padding
481 --> $DIR/enum.rs:647:10
482 |
483 647 | #[derive(IntoBytes)]
484 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
485 |
486 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
487 = note: consider adding explicit fields where padding would be
488 = note: consider using `#[repr(packed)]` to remove padding
489 help: the trait `PaddingFree<IntoBytes3, 2>` is not implemented for `()`
490 but trait `PaddingFree<IntoBytes3, 0>` is implemented for it
491 --> $WORKSPACE/src/util/macro_util.rs:64:1
492 |
493 64 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
494 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
495 = help: see issue #48214
496 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
497
498 error: generic `Self` types are currently not permitted in anonymous constants
499 --> $DIR/enum.rs:672:10
500 |
501 672 | #[derive(IntoBytes)]
502 | ^^^^^^^^^
503 |
504 note: not a concrete type
505 --> $DIR/enum.rs:672:10
506 |
507 672 | #[derive(IntoBytes)]
508 | ^^^^^^^^^
509 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
510
511 error[E0277]: `IntoBytes7` has 1 total byte(s) of padding
512 --> $DIR/enum.rs:681:10
513 |
514 681 | #[derive(IntoBytes)]
515 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
516 |
517 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
518 = note: consider adding explicit fields where padding would be
519 = note: consider using `#[repr(packed)]` to remove padding
520 help: the trait `PaddingFree<IntoBytes7, 1>` is not implemented for `()`
521 but trait `PaddingFree<IntoBytes7, 0>` is implemented for it
522 --> $WORKSPACE/src/util/macro_util.rs:64:1
523 |
524 64 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
525 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
526 = help: see issue #48214
527 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
528
529 error[E0277]: the trait bound `bool: FromBytes` is not satisfied
530 --> $DIR/enum.rs:247:10
531 |
532 247 | #[derive(FromBytes)]
533 | ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool`
534 |
535 = note: Consider adding `#[derive(FromBytes)]` to `bool`
536 = help: the following other types implement trait `FromBytes`:
537 ()
538 (A, B)
539 (A, B, C)
540 (A, B, C, D)
541 (A, B, C, D, E)
542 (A, B, C, D, E, F)
543 (A, B, C, D, E, F, G)
544 (A, B, C, D, E, F, G, H)
545 and 79 others
546 note: required for `FooU8` to implement `FromBytes`
547 --> $DIR/enum.rs:247:10
548 |
549 247 | #[derive(FromBytes)]
550 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
551 note: required by a bound in `assert_is_from_bytes`
552 --> $DIR/enum.rs:247:10
553 |
554 247 | #[derive(FromBytes)]
555 | ^^^^^^^^^ required by this bound in `assert_is_from_bytes`
556 = note: the full name for the type has been written to '/long-type-HASH.txt'
557 = note: consider using `--verbose` to print the full type name to the console
558 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
559
560 error: aborting due to 52 previous errors
561
562 Some errors have detailed explanations: E0277, E0552, E0565, E0566.
563 For more information about an error, try `rustc --explain E0277`.