mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 22:09:53 +00:00
49 lines
2.1 KiB
Plaintext
49 lines
2.1 KiB
Plaintext
error[E0277]: the trait bound `Src: FromBytes` is not satisfied
|
|
--> tests/ui-stable/transmute-mut-src-not-frombytes.rs:24:38
|
|
|
|
|
24 | const SRC_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
| |
|
|
| the trait `FromBytes` is not implemented for `Src`
|
|
| required by a bound introduced by this call
|
|
|
|
|
= help: the following other types implement trait `FromBytes`:
|
|
()
|
|
Dst
|
|
F32<O>
|
|
F64<O>
|
|
I128<O>
|
|
I16<O>
|
|
I32<O>
|
|
I64<O>
|
|
and $N others
|
|
note: required by a bound in `AssertSrcIsFromBytes`
|
|
--> tests/ui-stable/transmute-mut-src-not-frombytes.rs:24:38
|
|
|
|
|
24 | const SRC_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
|
|
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the trait bound `Src: FromBytes` is not satisfied
|
|
--> tests/ui-stable/transmute-mut-src-not-frombytes.rs:24:38
|
|
|
|
|
24 | const SRC_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `Src`
|
|
|
|
|
= help: the following other types implement trait `FromBytes`:
|
|
()
|
|
Dst
|
|
F32<O>
|
|
F64<O>
|
|
I128<O>
|
|
I16<O>
|
|
I32<O>
|
|
I64<O>
|
|
and $N others
|
|
note: required by a bound in `AssertSrcIsFromBytes`
|
|
--> tests/ui-stable/transmute-mut-src-not-frombytes.rs:24:38
|
|
|
|
|
24 | const SRC_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
|
|
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|