Debian Codegraph @

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

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