Debian Codegraph @

debian/rust-vendor/zerocopy/tests/ui/transmute.stable.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy: FromBytes` is not satisfied
2 --> $DIR/transmute.rs:17:41
3 |
4 17 | const DST_NOT_FROM_BYTES: NotZerocopy = transmute!(AU16(0));
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 `DST_NOT_FROM_BYTES::transmute`
24 --> $DIR/transmute.rs:17:41
25 |
26 17 | const DST_NOT_FROM_BYTES: NotZerocopy = transmute!(AU16(0));
27 | ^^^^^^^^^^^^^^^^^^^
28 | |
29 | required by a bound in this function
30 | required by this bound in `transmute`
31 = note: the full name for the type has been written to '/long-type-HASH.txt'
32 = note: consider using `--verbose` to print the full type name to the console
33 = note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
34
35 error[E0277]: the trait bound `NotZerocopy<AU16>: IntoBytes` is not satisfied
36 --> $DIR/transmute.rs:21:32
37 |
38 21 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0)));
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 | |
41 | unsatisfied trait bound
42 | required by a bound introduced by this call
43 |
44 help: the trait `IntoBytes` is not implemented for `NotZerocopy<AU16>`
45 --> $DIR/../include.rs:15:5
46 |
47 15 | pub struct NotZerocopy<T = ()>(pub T);
48 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy<AU16>`
50 = help: the following other types implement trait `IntoBytes`:
51 ()
52 AU16
53 AtomicBool
54 AtomicI16
55 AtomicI32
56 AtomicI64
57 AtomicI8
58 AtomicIsize
59 and 68 others
60 note: required by a bound in `SRC_NOT_AS_BYTES::transmute`
61 --> $DIR/transmute.rs:21:32
62 |
63 21 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0)));
64 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65 | |
66 | required by a bound in this function
67 | required by this bound in `transmute`
68 = note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
69
70 error: aborting due to 2 previous errors
71
72 For more information about this error, try `rustc --explain E0277`.