| 1 |
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied |
| 2 |
--> $DIR/try_transmute_mut.rs:18:63 |
| 3 |
| |
| 4 |
18 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 6 |
| |
| 7 |
help: the trait `TryFromBytes` 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(TryFromBytes)]` to `NotZerocopy` |
| 13 |
= help: the following other types implement trait `TryFromBytes`: |
| 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 156 others |
| 23 |
note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` |
| 24 |
--> $WORKSPACE/src/util/macro_util.rs:837:14 |
| 25 |
| |
| 26 |
834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> |
| 27 |
| ----------------- required by a bound in this associated function |
| 28 |
... |
| 29 |
837 | Dst: TryFromBytes + IntoBytes, |
| 30 |
| ^^^^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` |
| 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 `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 34 |
|
| 35 |
error[E0277]: the trait bound `NotZerocopy: IntoBytes` is not satisfied |
| 36 |
--> $DIR/try_transmute_mut.rs:18:63 |
| 37 |
| |
| 38 |
18 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src); |
| 39 |
| ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 40 |
| |
| 41 |
help: the trait `IntoBytes` is not implemented for `NotZerocopy` |
| 42 |
--> $DIR/../include.rs:15:5 |
| 43 |
| |
| 44 |
15 | pub struct NotZerocopy<T = ()>(pub T); |
| 45 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 46 |
= note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` |
| 47 |
= help: the following other types implement trait `IntoBytes`: |
| 48 |
() |
| 49 |
AU16 |
| 50 |
AtomicBool |
| 51 |
AtomicI16 |
| 52 |
AtomicI32 |
| 53 |
AtomicI64 |
| 54 |
AtomicI8 |
| 55 |
AtomicIsize |
| 56 |
and 69 others |
| 57 |
note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` |
| 58 |
--> $WORKSPACE/src/util/macro_util.rs:837:29 |
| 59 |
| |
| 60 |
834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> |
| 61 |
| ----------------- required by a bound in this associated function |
| 62 |
... |
| 63 |
837 | Dst: TryFromBytes + IntoBytes, |
| 64 |
| ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` |
| 65 |
= note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 66 |
|
| 67 |
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied |
| 68 |
--> $DIR/try_transmute_mut.rs:18:33 |
| 69 |
| |
| 70 |
18 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src); |
| 71 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 72 |
| |
| 73 |
help: the trait `TryFromBytes` is not implemented for `NotZerocopy` |
| 74 |
--> $DIR/../include.rs:15:5 |
| 75 |
| |
| 76 |
15 | pub struct NotZerocopy<T = ()>(pub T); |
| 77 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 78 |
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` |
| 79 |
= help: the following other types implement trait `TryFromBytes`: |
| 80 |
() |
| 81 |
(A, B) |
| 82 |
(A, B, C) |
| 83 |
(A, B, C, D) |
| 84 |
(A, B, C, D, E) |
| 85 |
(A, B, C, D, E, F) |
| 86 |
(A, B, C, D, E, F, G) |
| 87 |
(A, B, C, D, E, F, G, H) |
| 88 |
and 156 others |
| 89 |
note: required by a bound in `ValidityError` |
| 90 |
--> $WORKSPACE/src/error.rs:590:45 |
| 91 |
| |
| 92 |
590 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> { |
| 93 |
| ^^^^^^^^^^^^ required by this bound in `ValidityError` |
| 94 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 95 |
= note: consider using `--verbose` to print the full type name to the console |
| 96 |
|
| 97 |
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied |
| 98 |
--> $DIR/try_transmute_mut.rs:18:63 |
| 99 |
| |
| 100 |
18 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src); |
| 101 |
| ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 102 |
| |
| 103 |
help: the trait `TryFromBytes` is not implemented for `NotZerocopy` |
| 104 |
--> $DIR/../include.rs:15:5 |
| 105 |
| |
| 106 |
15 | pub struct NotZerocopy<T = ()>(pub T); |
| 107 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 108 |
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` |
| 109 |
= help: the following other types implement trait `TryFromBytes`: |
| 110 |
() |
| 111 |
(A, B) |
| 112 |
(A, B, C) |
| 113 |
(A, B, C, D) |
| 114 |
(A, B, C, D, E) |
| 115 |
(A, B, C, D, E, F) |
| 116 |
(A, B, C, D, E, F, G) |
| 117 |
(A, B, C, D, E, F, G, H) |
| 118 |
and 156 others |
| 119 |
note: required by a bound in `ValidityError` |
| 120 |
--> $WORKSPACE/src/error.rs:590:45 |
| 121 |
| |
| 122 |
590 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> { |
| 123 |
| ^^^^^^^^^^^^ required by this bound in `ValidityError` |
| 124 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 125 |
= note: consider using `--verbose` to print the full type name to the console |
| 126 |
= note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 127 |
|
| 128 |
error[E0277]: the trait bound `SrcA: FromBytes` is not satisfied |
| 129 |
--> $DIR/try_transmute_mut.rs:33:41 |
| 130 |
| |
| 131 |
33 | let src_not_from_bytes: &mut DstA = try_transmute_mut!(&mut SrcA).unwrap(); |
| 132 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 133 |
| |
| 134 |
help: the trait `FromBytes` is not implemented for `SrcA` |
| 135 |
--> $DIR/try_transmute_mut.rs:26:5 |
| 136 |
| |
| 137 |
26 | struct SrcA; |
| 138 |
| ^^^^^^^^^^^ |
| 139 |
= note: Consider adding `#[derive(FromBytes)]` to `SrcA` |
| 140 |
= help: the following other types implement trait `FromBytes`: |
| 141 |
() |
| 142 |
(A, B) |
| 143 |
(A, B, C) |
| 144 |
(A, B, C, D) |
| 145 |
(A, B, C, D, E) |
| 146 |
(A, B, C, D, E, F) |
| 147 |
(A, B, C, D, E, F, G) |
| 148 |
(A, B, C, D, E, F, G, H) |
| 149 |
and 80 others |
| 150 |
note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` |
| 151 |
--> $WORKSPACE/src/util/macro_util.rs:836:14 |
| 152 |
| |
| 153 |
834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> |
| 154 |
| ----------------- required by a bound in this associated function |
| 155 |
835 | where |
| 156 |
836 | Src: FromBytes + IntoBytes, |
| 157 |
| ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` |
| 158 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 159 |
= note: consider using `--verbose` to print the full type name to the console |
| 160 |
= note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 161 |
|
| 162 |
error[E0277]: the trait bound `DstA: IntoBytes` is not satisfied |
| 163 |
--> $DIR/try_transmute_mut.rs:33:41 |
| 164 |
| |
| 165 |
33 | let src_not_from_bytes: &mut DstA = try_transmute_mut!(&mut SrcA).unwrap(); |
| 166 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 167 |
| |
| 168 |
help: the trait `IntoBytes` is not implemented for `DstA` |
| 169 |
--> $DIR/try_transmute_mut.rs:30:5 |
| 170 |
| |
| 171 |
30 | struct DstA; |
| 172 |
| ^^^^^^^^^^^ |
| 173 |
= note: Consider adding `#[derive(IntoBytes)]` to `DstA` |
| 174 |
= help: the following other types implement trait `IntoBytes`: |
| 175 |
() |
| 176 |
AU16 |
| 177 |
AtomicBool |
| 178 |
AtomicI16 |
| 179 |
AtomicI32 |
| 180 |
AtomicI64 |
| 181 |
AtomicI8 |
| 182 |
AtomicIsize |
| 183 |
and 69 others |
| 184 |
note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` |
| 185 |
--> $WORKSPACE/src/util/macro_util.rs:837:29 |
| 186 |
| |
| 187 |
834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> |
| 188 |
| ----------------- required by a bound in this associated function |
| 189 |
... |
| 190 |
837 | Dst: TryFromBytes + IntoBytes, |
| 191 |
| ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` |
| 192 |
= note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 193 |
|
| 194 |
error[E0277]: the trait bound `SrcB: IntoBytes` is not satisfied |
| 195 |
--> $DIR/try_transmute_mut.rs:46:41 |
| 196 |
| |
| 197 |
46 | let src_not_from_bytes: &mut DstB = try_transmute_mut!(&mut SrcB).unwrap(); |
| 198 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 199 |
| |
| 200 |
help: the trait `IntoBytes` is not implemented for `SrcB` |
| 201 |
--> $DIR/try_transmute_mut.rs:39:5 |
| 202 |
| |
| 203 |
39 | struct SrcB; |
| 204 |
| ^^^^^^^^^^^ |
| 205 |
= note: Consider adding `#[derive(IntoBytes)]` to `SrcB` |
| 206 |
= help: the following other types implement trait `IntoBytes`: |
| 207 |
() |
| 208 |
AU16 |
| 209 |
AtomicBool |
| 210 |
AtomicI16 |
| 211 |
AtomicI32 |
| 212 |
AtomicI64 |
| 213 |
AtomicI8 |
| 214 |
AtomicIsize |
| 215 |
and 69 others |
| 216 |
note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` |
| 217 |
--> $WORKSPACE/src/util/macro_util.rs:836:26 |
| 218 |
| |
| 219 |
834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> |
| 220 |
| ----------------- required by a bound in this associated function |
| 221 |
835 | where |
| 222 |
836 | Src: FromBytes + IntoBytes, |
| 223 |
| ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` |
| 224 |
= note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 225 |
|
| 226 |
error[E0277]: the trait bound `DstB: IntoBytes` is not satisfied |
| 227 |
--> $DIR/try_transmute_mut.rs:46:41 |
| 228 |
| |
| 229 |
46 | let src_not_from_bytes: &mut DstB = try_transmute_mut!(&mut SrcB).unwrap(); |
| 230 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 231 |
| |
| 232 |
help: the trait `IntoBytes` is not implemented for `DstB` |
| 233 |
--> $DIR/try_transmute_mut.rs:43:5 |
| 234 |
| |
| 235 |
43 | struct DstB; |
| 236 |
| ^^^^^^^^^^^ |
| 237 |
= note: Consider adding `#[derive(IntoBytes)]` to `DstB` |
| 238 |
= help: the following other types implement trait `IntoBytes`: |
| 239 |
() |
| 240 |
AU16 |
| 241 |
AtomicBool |
| 242 |
AtomicI16 |
| 243 |
AtomicI32 |
| 244 |
AtomicI64 |
| 245 |
AtomicI8 |
| 246 |
AtomicIsize |
| 247 |
and 69 others |
| 248 |
note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::try_transmute_mut` |
| 249 |
--> $WORKSPACE/src/util/macro_util.rs:837:29 |
| 250 |
| |
| 251 |
834 | pub fn try_transmute_mut(self) -> Result<&'a mut Dst, ValidityError<&'a mut Src, Dst>> |
| 252 |
| ----------------- required by a bound in this associated function |
| 253 |
... |
| 254 |
837 | Dst: TryFromBytes + IntoBytes, |
| 255 |
| ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::try_transmute_mut` |
| 256 |
= note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 257 |
|
| 258 |
error: aborting due to 8 previous errors |
| 259 |
|
| 260 |
For more information about this error, try `rustc --explain E0277`. |