Debian Codegraph @

third_party/rust/zerocopy/tests/ui-msrv/transmute-mut-src-dst-unsized.stderr

raw
1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
3 |
4 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6 |
7 = help: the trait `Sized` is not implemented for `[u8]`
8 note: required by a bound in `AssertSrcIsFromBytes`
9 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
10 |
11 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
13 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
16 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
17 |
18 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
20 |
21 = help: the trait `Sized` is not implemented for `[u8]`
22 note: required by a bound in `AssertSrcIsFromBytes`
23 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
24 |
25 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
27 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
30 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
31 |
32 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
34 |
35 = help: the trait `Sized` is not implemented for `[u8]`
36 note: required by a bound in `AssertSrcIsAsBytes`
37 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
38 |
39 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes`
41 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
42
43 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
44 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
45 |
46 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
48 |
49 = help: the trait `Sized` is not implemented for `[u8]`
50 note: required by a bound in `AssertSrcIsAsBytes`
51 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
52 |
53 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
54 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes`
55 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
56
57 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
58 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
59 |
60 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
62 |
63 = help: the trait `Sized` is not implemented for `[u8]`
64 note: required by a bound in `AssertDstIsFromBytes`
65 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
66 |
67 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
68 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsFromBytes`
69 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
70
71 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
72 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
73 |
74 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
76 |
77 = help: the trait `Sized` is not implemented for `[u8]`
78 note: required by a bound in `AssertDstIsAsBytes`
79 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
80 |
81 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
82 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsAsBytes`
83 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
84
85 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
86 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
87 |
88 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
89 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
90 |
91 = help: the trait `Sized` is not implemented for `[u8]`
92 = note: all local variables must have a statically known size
93 = help: unsized locals are gated as an unstable feature
94 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
95
96 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
97 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
98 |
99 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
101 |
102 = help: the trait `Sized` is not implemented for `[u8]`
103 note: required by a bound in `transmute`
104 --> $RUST/core/src/intrinsics.rs
105 |
106 | pub fn transmute<T, U>(e: T) -> U;
107 | ^ required by this bound in `transmute`
108 = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
109
110 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
111 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
112 |
113 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
114 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
115 |
116 = help: the trait `Sized` is not implemented for `[u8]`
117 note: required by a bound in `AlignOf::<T>::into_t`
118 --> src/macro_util.rs
119 |
120 | impl<T> AlignOf<T> {
121 | ^ required by this bound in `AlignOf::<T>::into_t`
122 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
123
124 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
125 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
126 |
127 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
128 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
129 |
130 = help: the trait `Sized` is not implemented for `[u8]`
131 = note: the left-hand-side of an assignment must have a statically known size
132 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
133
134 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
135 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
136 |
137 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
138 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
139 |
140 = help: the trait `Sized` is not implemented for `[u8]`
141 note: required by a bound in `AlignOf`
142 --> src/macro_util.rs
143 |
144 | pub struct AlignOf<T> {
145 | ^ required by this bound in `AlignOf`
146 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
147
148 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
149 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
150 |
151 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
152 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
153 |
154 = help: the trait `Sized` is not implemented for `[u8]`
155 note: required by a bound in `MaxAlignsOf::<T, U>::new`
156 --> src/macro_util.rs
157 |
158 | impl<T, U> MaxAlignsOf<T, U> {
159 | ^ required by this bound in `MaxAlignsOf::<T, U>::new`
160 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
161
162 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
163 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
164 |
165 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
166 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
167 |
168 = help: the trait `Sized` is not implemented for `[u8]`
169 note: required by a bound in `MaxAlignsOf`
170 --> src/macro_util.rs
171 |
172 | pub union MaxAlignsOf<T, U> {
173 | ^ required by this bound in `MaxAlignsOf`
174 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
175
176 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
177 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
178 |
179 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
180 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
181 |
182 = help: the trait `Sized` is not implemented for `[u8]`
183 note: required by a bound in `MaxAlignsOf`
184 --> src/macro_util.rs
185 |
186 | pub union MaxAlignsOf<T, U> {
187 | ^ required by this bound in `MaxAlignsOf`
188 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
189
190 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
191 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
192 |
193 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
194 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
195 |
196 = help: the trait `Sized` is not implemented for `[u8]`
197 note: required by a bound in `AlignOf`
198 --> src/macro_util.rs
199 |
200 | pub struct AlignOf<T> {
201 | ^ required by this bound in `AlignOf`
202 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
203
204 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
205 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
206 |
207 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
208 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
209 |
210 = help: the trait `Sized` is not implemented for `[u8]`
211 = note: all local variables must have a statically known size
212 = help: unsized locals are gated as an unstable feature
213 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
214
215 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
216 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
217 |
218 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
219 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
220 |
221 = help: the trait `Sized` is not implemented for `[u8]`
222 note: required by a bound in `transmute_mut`
223 --> src/macro_util.rs
224 |
225 | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
226 | ^^^ required by this bound in `transmute_mut`
227 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
228
229 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
230 --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
231 |
232 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
233 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
234 |
235 = help: the trait `Sized` is not implemented for `[u8]`
236 = note: all function arguments must have a statically known size
237 = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)