Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied
2 --> tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs:20:33
3 |
4 20 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy`
6 |
7 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
8 = help: the following other types implement trait `zerocopy::TryFromBytes`:
9 ()
10 *const T
11 *mut T
12 AU16
13 AtomicBool
14 AtomicI16
15 AtomicI32
16 AtomicI64
17 and $N others
18 note: required by a bound in `ValidityError`
19 --> src/error.rs
20 |
21 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> {
22 | ^^^^^^^^^^^^ required by this bound in `ValidityError`
23
24 error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied
25 --> tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs:20:63
26 |
27 20 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src);
28 | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy`
29 |
30 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
31 = help: the following other types implement trait `zerocopy::TryFromBytes`:
32 ()
33 *const T
34 *mut T
35 AU16
36 AtomicBool
37 AtomicI16
38 AtomicI32
39 AtomicI64
40 and $N others
41 note: required by a bound in `try_transmute_mut`
42 --> src/util/macro_util.rs
43 |
44 | pub fn try_transmute_mut<Src, Dst>(src: &mut Src) -> Result<&mut Dst, ValidityError<&mut Src, Dst>>
45 | ----------------- required by a bound in this function
46 ...
47 | Dst: TryFromBytes + IntoBytes,
48 | ^^^^^^^^^^^^ required by this bound in `try_transmute_mut`
49 = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
50
51 error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not satisfied
52 --> tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs:20:63
53 |
54 20 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src);
55 | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy`
56 |
57 = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy`
58 = help: the following other types implement trait `zerocopy::IntoBytes`:
59 ()
60 AU16
61 AtomicBool
62 AtomicI16
63 AtomicI32
64 AtomicI64
65 AtomicI8
66 AtomicIsize
67 and $N others
68 note: required by a bound in `try_transmute_mut`
69 --> src/util/macro_util.rs
70 |
71 | pub fn try_transmute_mut<Src, Dst>(src: &mut Src) -> Result<&mut Dst, ValidityError<&mut Src, Dst>>
72 | ----------------- required by a bound in this function
73 ...
74 | Dst: TryFromBytes + IntoBytes,
75 | ^^^^^^^^^ required by this bound in `try_transmute_mut`
76 = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
77
78 error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied
79 --> tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs:20:63
80 |
81 20 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src);
82 | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy`
83 |
84 = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
85 = help: the following other types implement trait `zerocopy::TryFromBytes`:
86 ()
87 *const T
88 *mut T
89 AU16
90 AtomicBool
91 AtomicI16
92 AtomicI32
93 AtomicI64
94 and $N others
95 note: required by a bound in `ValidityError`
96 --> src/error.rs
97 |
98 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> {
99 | ^^^^^^^^^^^^ required by this bound in `ValidityError`
100 = note: this error originates in the macro `try_transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)