• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: the trait bound `Src: IntoBytes` is not satisfied
2  --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:23:40
3   |
423 |     let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src);
5   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^
6   |                                        |
7   |                                        the trait `IntoBytes` is not implemented for `Src`
8   |                                        required by a bound introduced by this call
9   |
10   = note: Consider adding `#[derive(IntoBytes)]` to `Src`
11   = help: the following other types implement trait `IntoBytes`:
12             ()
13             AtomicBool
14             AtomicI16
15             AtomicI32
16             AtomicI64
17             AtomicI8
18             AtomicIsize
19             AtomicU16
20           and $N others
21note: required by a bound in `AssertSrcIsIntoBytes`
22  --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:23:40
23   |
2423 |     let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src);
25   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsIntoBytes`
26   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
27
28error[E0277]: the trait bound `Src: IntoBytes` is not satisfied
29  --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:23:40
30   |
3123 |     let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src);
32   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `Src`
33   |
34   = note: Consider adding `#[derive(IntoBytes)]` to `Src`
35   = help: the following other types implement trait `IntoBytes`:
36             ()
37             AtomicBool
38             AtomicI16
39             AtomicI32
40             AtomicI64
41             AtomicI8
42             AtomicIsize
43             AtomicU16
44           and $N others
45note: required by a bound in `AssertSrcIsIntoBytes`
46  --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:23:40
47   |
4823 |     let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src);
49   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsIntoBytes`
50   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
51
52error[E0277]: the trait bound `Dst: FromBytes` is not satisfied
53  --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:23:40
54   |
5523 |     let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src);
56   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^
57   |                                        |
58   |                                        the trait `FromBytes` is not implemented for `Dst`
59   |                                        required by a bound introduced by this call
60   |
61   = note: Consider adding `#[derive(FromBytes)]` to `Dst`
62   = help: the following other types implement trait `FromBytes`:
63             ()
64             AtomicI16
65             AtomicI32
66             AtomicI64
67             AtomicI8
68             AtomicIsize
69             AtomicU16
70             AtomicU32
71           and $N others
72note: required by a bound in `AssertDstIsFromBytes`
73  --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:23:40
74   |
7523 |     let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src);
76   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsFromBytes`
77   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
78
79error[E0277]: the trait bound `Dst: IntoBytes` is not satisfied
80  --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:23:40
81   |
8223 |     let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src);
83   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^
84   |                                        |
85   |                                        the trait `IntoBytes` is not implemented for `Dst`
86   |                                        required by a bound introduced by this call
87   |
88   = note: Consider adding `#[derive(IntoBytes)]` to `Dst`
89   = help: the following other types implement trait `IntoBytes`:
90             ()
91             AtomicBool
92             AtomicI16
93             AtomicI32
94             AtomicI64
95             AtomicI8
96             AtomicIsize
97             AtomicU16
98           and $N others
99note: required by a bound in `AssertDstIsIntoBytes`
100  --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:23:40
101   |
10223 |     let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src);
103   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsIntoBytes`
104   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
105