Debian Codegraph @

debian/rust-vendor/zerocopy/tests/ui/try_transmute_mut.msrv.stderr

raw
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 | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy`
6 |
7 = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 error[E0277]: the trait bound `NotZerocopy: IntoBytes` is not satisfied
10 --> $DIR/try_transmute_mut.rs:18:63
11 |
12 18 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src);
13 | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `NotZerocopy`
14 |
15 = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
16
17 error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
18 --> $DIR/try_transmute_mut.rs:18:33
19 |
20 18 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src);
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy`
22 |
23 note: required by a bound in `ValidityError`
24 --> $WORKSPACE/src/error.rs:590:45
25 |
26 590 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> {
27 | ^^^^^^^^^^^^ required by this bound in `ValidityError`
28
29 error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
30 --> $DIR/try_transmute_mut.rs:18:63
31 |
32 18 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src);
33 | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy`
34 |
35 note: required by a bound in `ValidityError`
36 --> $WORKSPACE/src/error.rs:590:45
37 |
38 590 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> {
39 | ^^^^^^^^^^^^ required by this bound in `ValidityError`
40 = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
41
42 error[E0277]: the trait bound `SrcA: FromBytes` is not satisfied
43 --> $DIR/try_transmute_mut.rs:33:41
44 |
45 33 | let src_not_from_bytes: &mut DstA = try_transmute_mut!(&mut SrcA).unwrap();
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `SrcA`
47 |
48 = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
49
50 error[E0277]: the trait bound `DstA: IntoBytes` is not satisfied
51 --> $DIR/try_transmute_mut.rs:33:41
52 |
53 33 | let src_not_from_bytes: &mut DstA = try_transmute_mut!(&mut SrcA).unwrap();
54 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `DstA`
55 |
56 = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
57
58 error[E0277]: the trait bound `SrcB: IntoBytes` is not satisfied
59 --> $DIR/try_transmute_mut.rs:46:41
60 |
61 46 | let src_not_from_bytes: &mut DstB = try_transmute_mut!(&mut SrcB).unwrap();
62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `SrcB`
63 |
64 = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
65
66 error[E0277]: the trait bound `DstB: IntoBytes` is not satisfied
67 --> $DIR/try_transmute_mut.rs:46:41
68 |
69 46 | let src_not_from_bytes: &mut DstB = try_transmute_mut!(&mut SrcB).unwrap();
70 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `DstB`
71 |
72 = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
73
74 error: aborting due to 8 previous errors
75
76 For more information about this error, try `rustc --explain E0277`.