• 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-unsized.rs:16:35
3   |
416 | const SRC_UNSIZED: &mut [u8; 1] = 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 a bound in `AssertSrcIsFromBytes`
9  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
10   |
1116 | const SRC_UNSIZED: &mut [u8; 1] = 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
15error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
16  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
17   |
1816 | const SRC_UNSIZED: &mut [u8; 1] = 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 `AssertSrcIsFromBytes`
23  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
24   |
2516 | const SRC_UNSIZED: &mut [u8; 1] = 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
29error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
30  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
31   |
3216 | const SRC_UNSIZED: &mut [u8; 1] = 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 a bound in `AssertSrcIsAsBytes`
37  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
38   |
3916 | const SRC_UNSIZED: &mut [u8; 1] = 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
43error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
44  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
45   |
4616 | const SRC_UNSIZED: &mut [u8; 1] = 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]`
50note: required by a bound in `AssertSrcIsAsBytes`
51  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
52   |
5316 | const SRC_UNSIZED: &mut [u8; 1] = 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
57error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
58  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
59   |
6016 | const SRC_UNSIZED: &mut [u8; 1] = 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: all local variables must have a statically known size
65   = help: unsized locals are gated as an unstable feature
66   = note: this error originates in the macro `transmute_mut` (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-unsized.rs:16:35
70   |
7116 | const SRC_UNSIZED: &mut [u8; 1] = 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]`
75note: required by a bound in `transmute`
76  --> $RUST/core/src/intrinsics.rs
77   |
78   |     pub fn transmute<T, U>(e: T) -> U;
79   |                      ^ required by this bound in `transmute`
80   = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
81
82error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
83  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
84   |
8516 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
86   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
87   |
88   = help: the trait `Sized` is not implemented for `[u8]`
89note: required by a bound in `AlignOf::<T>::into_t`
90  --> src/macro_util.rs
91   |
92   | impl<T> AlignOf<T> {
93   |      ^ required by this bound in `AlignOf::<T>::into_t`
94   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
95
96error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
97  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
98   |
9916 | const SRC_UNSIZED: &mut [u8; 1] = 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: the left-hand-side of an assignment must have a statically known size
104   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
105
106error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
107  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
108   |
10916 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
110   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
111   |
112   = help: the trait `Sized` is not implemented for `[u8]`
113note: required by a bound in `AlignOf`
114  --> src/macro_util.rs
115   |
116   | pub struct AlignOf<T> {
117   |                    ^ required by this bound in `AlignOf`
118   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
119
120error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
121  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
122   |
12316 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
124   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
125   |
126   = help: the trait `Sized` is not implemented for `[u8]`
127note: required by a bound in `MaxAlignsOf::<T, U>::new`
128  --> src/macro_util.rs
129   |
130   | impl<T, U> MaxAlignsOf<T, U> {
131   |      ^ required by this bound in `MaxAlignsOf::<T, U>::new`
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
134error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
135  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
136   |
13716 | const SRC_UNSIZED: &mut [u8; 1] = 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]`
141note: required by a bound in `MaxAlignsOf`
142  --> src/macro_util.rs
143   |
144   | pub union MaxAlignsOf<T, U> {
145   |                       ^ required by this bound in `MaxAlignsOf`
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
148error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
149  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
150   |
15116 | const SRC_UNSIZED: &mut [u8; 1] = 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]`
155note: required by a bound in `MaxAlignsOf`
156  --> src/macro_util.rs
157   |
158   | pub union MaxAlignsOf<T, U> {
159   |                       ^ required by this bound in `MaxAlignsOf`
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
162error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
163  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
164   |
16516 | const SRC_UNSIZED: &mut [u8; 1] = 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]`
169note: required by a bound in `AlignOf`
170  --> src/macro_util.rs
171   |
172   | pub struct AlignOf<T> {
173   |                    ^ required by this bound in `AlignOf`
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
176error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
177  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
178   |
17916 | const SRC_UNSIZED: &mut [u8; 1] = 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]`
183note: required by a bound in `transmute_mut`
184  --> src/macro_util.rs
185   |
186   | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
187   |                                               ^^^ required by this bound in `transmute_mut`
188   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
189
190error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
191  --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35
192   |
19316 | const SRC_UNSIZED: &mut [u8; 1] = 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: all function arguments must have a statically known size
198   = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
199