Debian Codegraph @

third_party/rust/zerocopy/tests/ui-stable/transmute-ref-src-dst-unsized.stderr

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