• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2  --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36
3   |
417 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [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]`
11note: required by a bound in `AssertSrcIsSized`
12  --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36
13   |
1417 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
15   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsSized`
16   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
17
18error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
19  --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36
20   |
2117 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
22   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
23   |
24   = help: the trait `Sized` is not implemented for `[u8]`
25note: required by a bound in `AssertSrcIsSized`
26  --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36
27   |
2817 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
29   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsSized`
30   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
31
32error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
33  --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36
34   |
3517 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [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]`
42note: required by a bound in `AssertDstIsSized`
43  --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36
44   |
4517 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
46   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsSized`
47   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
48
49error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
50  --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36
51   |
5217 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [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_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
59
60error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
61  --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36
62   |
6317 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
64   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
65   |
66   = help: the trait `Sized` is not implemented for `[u8]`
67note: required by a bound in `AlignOf::<T>::into_t`
68  --> src/util/macro_util.rs
69   |
70   | impl<T> AlignOf<T> {
71   |      ^ required by this bound in `AlignOf::<T>::into_t`
72...
73   |     pub fn into_t(self) -> T {
74   |            ------ required by a bound in this associated function
75   = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (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-nightly/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` which comes from the expansion of the macro `transmute_mut` (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-nightly/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 an implicit `Sized` bound in `AlignOf`
95  --> src/util/macro_util.rs
96   |
97   | pub struct AlignOf<T> {
98   |                    ^ required by the implicit `Sized` requirement on this type parameter in `AlignOf`
99   = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (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-nightly/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 an implicit `Sized` bound in `MaxAlignsOf`
109  --> src/util/macro_util.rs
110   |
111   | pub union MaxAlignsOf<T, U> {
112   |                       ^ required by the implicit `Sized` requirement on this type parameter in `MaxAlignsOf`
113   = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (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-nightly/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 an implicit `Sized` bound in `AlignOf`
123  --> src/util/macro_util.rs
124   |
125   | pub struct AlignOf<T> {
126   |                    ^ required by the implicit `Sized` requirement on this type parameter in `AlignOf`
127   = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (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-nightly/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]`
136   = note: all local variables must have a statically known size
137   = help: unsized locals are gated as an unstable feature
138   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
139
140error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
141  --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36
142   |
14317 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
144   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
145   |
146   = help: the trait `Sized` is not implemented for `[u8]`
147note: required by an implicit `Sized` bound in `std::intrinsics::transmute`
148  --> $RUST/core/src/intrinsics.rs
149   |
150   | pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst {
151   |                                    ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
152   = note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
153
154error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
155  --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36
156   |
15717 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
158   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
159   |                                    |
160   |                                    doesn't have a size known at compile-time
161   |                                    required by a bound introduced by this call
162   |
163   = help: the trait `Sized` is not implemented for `[u8]`
164note: required by an implicit `Sized` bound in `transmute_mut`
165  --> src/util/macro_util.rs
166   |
167   | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
168   |                                               ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute_mut`
169   = note: this error originates in the macro `transmute_mut` (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-nightly/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]`
178note: required by an implicit `Sized` bound in `transmute_mut`
179  --> src/util/macro_util.rs
180   |
181   | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
182   |                                                          ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute_mut`
183   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
184