Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-frombytes.stderr

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