• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[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   |
417 | 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]`
8note: required by `AssertSrcIsSized`
9  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
10   |
1117 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
12   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15error[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   |
1817 | 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]`
22note: required by a bound in `AssertSrcIsSized`
23  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
24   |
2517 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
26   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsSized`
27   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29error[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   |
3217 | 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]`
36note: required by `AssertDstIsSized`
37  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
38   |
3917 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
40   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
42
43error[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   |
4617 | 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: all local variables must have a statically known size
51   = help: unsized locals are gated as an unstable feature
52   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
53
54error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
55  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
56   |
5717 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
58   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
59   |
60   = help: the trait `Sized` is not implemented for `[u8]`
61note: required by a bound in `transmute`
62  --> $RUST/core/src/intrinsics.rs
63   |
64   |     pub fn transmute<T, U>(e: T) -> U;
65   |                      ^ required by this bound in `transmute`
66   = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
67
68error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
69  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
70   |
7117 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
72   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
73   |
74   = help: the trait `Sized` is not implemented for `[u8]`
75   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
76
77error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
78  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
79   |
8017 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
81   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
82   |
83   = help: the trait `Sized` is not implemented for `[u8]`
84   = note: the left-hand-side of an assignment must have a statically known size
85   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
86
87error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
88  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
89   |
9017 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
91   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
92   |
93   = help: the trait `Sized` is not implemented for `[u8]`
94note: required by a bound in `AlignOf`
95  --> src/util/macro_util.rs
96   |
97   | pub struct AlignOf<T> {
98   |                    ^ required by this bound in `AlignOf`
99   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
100
101error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
102  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
103   |
10417 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
105   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
106   |
107   = help: the trait `Sized` is not implemented for `[u8]`
108note: required by `MaxAlignsOf::<T, U>::new`
109  --> src/util/macro_util.rs
110   |
111   |     pub fn new(_t: T, _u: U) -> MaxAlignsOf<T, U> {
112   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
114
115error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
116  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
117   |
11817 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
119   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
120   |
121   = help: the trait `Sized` is not implemented for `[u8]`
122note: required by a bound in `MaxAlignsOf`
123  --> src/util/macro_util.rs
124   |
125   | pub union MaxAlignsOf<T, U> {
126   |                       ^ required by this bound in `MaxAlignsOf`
127   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
128
129error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
130  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
131   |
13217 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
133   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
134   |
135   = help: the trait `Sized` is not implemented for `[u8]`
136note: required by a bound in `MaxAlignsOf`
137  --> src/util/macro_util.rs
138   |
139   | pub union MaxAlignsOf<T, U> {
140   |                       ^ required by this bound in `MaxAlignsOf`
141   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
142
143error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
144  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
145   |
14617 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
147   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
148   |
149   = help: the trait `Sized` is not implemented for `[u8]`
150note: required by a bound in `AlignOf`
151  --> src/util/macro_util.rs
152   |
153   | pub struct AlignOf<T> {
154   |                    ^ required by this bound in `AlignOf`
155   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
156
157error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
158  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
159   |
16017 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
161   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
162   |
163   = help: the trait `Sized` is not implemented for `[u8]`
164note: required by a bound in `MaxAlignsOf`
165  --> src/util/macro_util.rs
166   |
167   | pub union MaxAlignsOf<T, U> {
168   |                       ^ required by this bound in `MaxAlignsOf`
169   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
170
171error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
172  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
173   |
17417 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
175   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
176   |
177   = help: the trait `Sized` is not implemented for `[u8]`
178   = note: all local variables must have a statically known size
179   = help: unsized locals are gated as an unstable feature
180   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
181
182error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
183  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
184   |
18517 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
186   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
187   |
188   = help: the trait `Sized` is not implemented for `[u8]`
189note: required by a bound in `transmute`
190  --> $RUST/core/src/intrinsics.rs
191   |
192   |     pub fn transmute<T, U>(e: T) -> U;
193   |                         ^ required by this bound in `transmute`
194   = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
195
196error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
197  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
198   |
19917 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
200   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
201   |
202   = help: the trait `Sized` is not implemented for `[u8]`
203note: required by a bound in `transmute_mut`
204  --> src/util/macro_util.rs
205   |
206   | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
207   |                                               ^^^ required by this bound in `transmute_mut`
208   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
209
210error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
211  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
212   |
21317 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
214   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
215   |
216   = help: the trait `Sized` is not implemented for `[u8]`
217note: required by a bound in `transmute_mut`
218  --> src/util/macro_util.rs
219   |
220   | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
221   |                                                          ^^^ required by this bound in `transmute_mut`
222   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
223