Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-intobytes.stderr

raw
1 error[E0277]: the trait bound `Src: IntoBytes` is not satisfied
2 --> tests/ui-nightly/try_transmute_mut-src-not-intobytes.rs:23:40
3 |
4 23 | let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
6 |
7 help: the trait `IntoBytes` is not implemented for `Src`
8 --> tests/ui-nightly/try_transmute_mut-src-not-intobytes.rs:15:1
9 |
10 15 | struct Src;
11 | ^^^^^^^^^^
12 = note: Consider adding `#[derive(IntoBytes)]` to `Src`
13 = help: the following other types implement trait `IntoBytes`:
14 ()
15 AtomicBool
16 AtomicI16
17 AtomicI32
18 AtomicI64
19 AtomicI8
20 AtomicIsize
21 AtomicU16
22 and $N others
23 note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut`
24 --> src/util/macro_util.rs
25 |
26 | pub fn transmute_mut(self) -> &'a mut Dst
27 | ------------- required by a bound in this associated function
28 | where
29 | Src: FromBytes + IntoBytes,
30 | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut`
31 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
32
33 error[E0277]: the trait bound `Dst: FromBytes` is not satisfied
34 --> tests/ui-nightly/try_transmute_mut-src-not-intobytes.rs:23:40
35 |
36 23 | let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src);
37 | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
38 |
39 help: the trait `FromBytes` is not implemented for `Dst`
40 --> tests/ui-nightly/try_transmute_mut-src-not-intobytes.rs:19:1
41 |
42 19 | struct Dst;
43 | ^^^^^^^^^^
44 = note: Consider adding `#[derive(FromBytes)]` to `Dst`
45 = help: the following other types implement trait `FromBytes`:
46 ()
47 AtomicI16
48 AtomicI32
49 AtomicI64
50 AtomicI8
51 AtomicIsize
52 AtomicU16
53 AtomicU32
54 and $N others
55 note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut`
56 --> src/util/macro_util.rs
57 |
58 | pub fn transmute_mut(self) -> &'a mut Dst
59 | ------------- required by a bound in this associated function
60 ...
61 | Dst: FromBytes + IntoBytes,
62 | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut`
63 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
64
65 error[E0277]: the trait bound `Dst: IntoBytes` is not satisfied
66 --> tests/ui-nightly/try_transmute_mut-src-not-intobytes.rs:23:40
67 |
68 23 | let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src);
69 | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
70 |
71 help: the trait `IntoBytes` is not implemented for `Dst`
72 --> tests/ui-nightly/try_transmute_mut-src-not-intobytes.rs:19:1
73 |
74 19 | struct Dst;
75 | ^^^^^^^^^^
76 = note: Consider adding `#[derive(IntoBytes)]` to `Dst`
77 = help: the following other types implement trait `IntoBytes`:
78 ()
79 AtomicBool
80 AtomicI16
81 AtomicI32
82 AtomicI64
83 AtomicI8
84 AtomicIsize
85 AtomicU16
86 and $N others
87 note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut`
88 --> src/util/macro_util.rs
89 |
90 | pub fn transmute_mut(self) -> &'a mut Dst
91 | ------------- required by a bound in this associated function
92 ...
93 | Dst: FromBytes + IntoBytes,
94 | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut`
95 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)