Debian Codegraph @

.cargo/vendor/zerocopy-derive/tests/ui-nightly/derive_transparent.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied
2 --> tests/ui-nightly/derive_transparent.rs:34:23
3 |
4 34 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
6 |
7 help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy`
8 --> tests/ui-nightly/../include.rs
9 |
10 | 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 for `TransparentStruct<NotZerocopy>` to implement `zerocopy::TryFromBytes`
24 --> tests/ui-nightly/derive_transparent.rs:24:21
25 |
26 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
27 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
28 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
29 --> tests/ui-nightly/derive_transparent.rs:34:1
30 |
31 34 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes);
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
33 = note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
34
35 error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied
36 --> tests/ui-nightly/derive_transparent.rs:35:23
37 |
38 35 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros);
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
40 |
41 help: the trait `FromZeros` is not implemented for `NotZerocopy`
42 --> tests/ui-nightly/../include.rs
43 |
44 | pub struct NotZerocopy<T = ()>(pub T);
45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy`
47 = help: the following other types implement trait `FromZeros`:
48 ()
49 *const T
50 *mut T
51 AU16
52 AtomicBool
53 AtomicI16
54 AtomicI32
55 AtomicI64
56 and $N others
57 note: required for `TransparentStruct<NotZerocopy>` to implement `FromZeros`
58 --> tests/ui-nightly/derive_transparent.rs:24:21
59 |
60 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
61 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
62 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
63 --> tests/ui-nightly/derive_transparent.rs:35:1
64 |
65 35 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros);
66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
67 = note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
68
69 error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfied
70 --> tests/ui-nightly/derive_transparent.rs:36:23
71 |
72 36 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
73 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
74 |
75 help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy`
76 --> tests/ui-nightly/../include.rs
77 |
78 | pub struct NotZerocopy<T = ()>(pub T);
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80 = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy`
81 = help: the following other types implement trait `zerocopy::FromBytes`:
82 ()
83 AU16
84 AtomicI16
85 AtomicI32
86 AtomicI64
87 AtomicI8
88 AtomicIsize
89 AtomicU16
90 and $N others
91 note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy::FromBytes`
92 --> tests/ui-nightly/derive_transparent.rs:24:21
93 |
94 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
95 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
96 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
97 --> tests/ui-nightly/derive_transparent.rs:36:1
98 |
99 36 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
101 = note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
102
103 error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not satisfied
104 --> tests/ui-nightly/derive_transparent.rs:37:23
105 |
106 37 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes);
107 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
108 |
109 help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy`
110 --> tests/ui-nightly/../include.rs
111 |
112 | pub struct NotZerocopy<T = ()>(pub T);
113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114 = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy`
115 = help: the following other types implement trait `zerocopy::IntoBytes`:
116 ()
117 AU16
118 AtomicBool
119 AtomicI16
120 AtomicI32
121 AtomicI64
122 AtomicI8
123 AtomicIsize
124 and $N others
125 note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy::IntoBytes`
126 --> tests/ui-nightly/derive_transparent.rs:24:10
127 |
128 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
129 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
130 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
131 --> tests/ui-nightly/derive_transparent.rs:37:1
132 |
133 37 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes);
134 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
135 = note: this error originates in the derive macro `IntoBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
136
137 error[E0277]: the trait bound `NotZerocopy: zerocopy::Unaligned` is not satisfied
138 --> tests/ui-nightly/derive_transparent.rs:38:23
139 |
140 38 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
141 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
142 |
143 help: the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy`
144 --> tests/ui-nightly/../include.rs
145 |
146 | pub struct NotZerocopy<T = ()>(pub T);
147 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
148 = note: Consider adding `#[derive(Unaligned)]` to `NotZerocopy`
149 = help: the following other types implement trait `zerocopy::Unaligned`:
150 ()
151 AtomicBool
152 AtomicI8
153 AtomicU8
154 Cell<T>
155 F32<O>
156 F64<O>
157 I128<O>
158 and $N others
159 note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy::Unaligned`
160 --> tests/ui-nightly/derive_transparent.rs:24:32
161 |
162 24 | #[derive(IntoBytes, FromBytes, Unaligned)]
163 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
164 note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
165 --> tests/ui-nightly/derive_transparent.rs:38:1
166 |
167 38 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
168 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
169 = note: this error originates in the derive macro `Unaligned` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)