Debian Codegraph @

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

raw
1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
3 |
4 16 | const SRC_UNSIZED: &mut [u8; 1] = 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]`
11 note: required by a bound in `AssertSrcIsFromBytes`
12 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
13 |
14 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
16 = note: this error originates in the macro `transmute_mut` (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-mut-src-unsized.rs:16:35
20 |
21 16 | const SRC_UNSIZED: &mut [u8; 1] = 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]`
25 note: required by a bound in `AssertSrcIsFromBytes`
26 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
27 |
28 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
30 = note: this error originates in the macro `transmute_mut` (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-mut-src-unsized.rs:16:35
34 |
35 16 | const SRC_UNSIZED: &mut [u8; 1] = 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]`
42 note: required by a bound in `AssertSrcIsAsBytes`
43 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
44 |
45 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes`
47 = note: this error originates in the macro `transmute_mut` (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-mut-src-unsized.rs:16:35
51 |
52 16 | const SRC_UNSIZED: &mut [u8; 1] = 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: required by a bound in `AssertSrcIsAsBytes`
57 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
58 |
59 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes`
61 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
62
63 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
64 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
65 |
66 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
68 |
69 = help: the trait `Sized` is not implemented for `[u8]`
70 = note: all local variables must have a statically known size
71 = help: unsized locals are gated as an unstable feature
72 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
73
74 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
75 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
76 |
77 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
78 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
79 | |
80 | doesn't have a size known at compile-time
81 | required by a bound introduced by this call
82 |
83 = help: the trait `Sized` is not implemented for `[u8]`
84 note: required by a bound in `transmute`
85 --> $RUST/core/src/intrinsics.rs
86 |
87 | pub fn transmute<Src, Dst>(src: Src) -> Dst;
88 | ^^^ required by this bound in `transmute`
89 = 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)
90
91 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
92 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
93 |
94 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
96 |
97 = help: the trait `Sized` is not implemented for `[u8]`
98 note: required by a bound in `AlignOf::<T>::into_t`
99 --> src/macro_util.rs
100 |
101 | impl<T> AlignOf<T> {
102 | ^ required by this bound in `AlignOf::<T>::into_t`
103 | #[inline(never)] // Make `missing_inline_in_public_items` happy.
104 | pub fn into_t(self) -> T {
105 | ------ required by a bound in this associated function
106 = 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)
107
108 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
109 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
110 |
111 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
112 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
113 |
114 = help: the trait `Sized` is not implemented for `[u8]`
115 = note: the left-hand-side of an assignment must have a statically known size
116 = 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)
117
118 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
119 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
120 |
121 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
122 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
123 |
124 = help: the trait `Sized` is not implemented for `[u8]`
125 note: required by a bound in `AlignOf`
126 --> src/macro_util.rs
127 |
128 | pub struct AlignOf<T> {
129 | ^ required by this bound in `AlignOf`
130 = 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)
131
132 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
133 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
134 |
135 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
137 | |
138 | doesn't have a size known at compile-time
139 | required by a bound introduced by this call
140 |
141 = help: the trait `Sized` is not implemented for `[u8]`
142 note: required by a bound in `MaxAlignsOf::<T, U>::new`
143 --> src/macro_util.rs
144 |
145 | impl<T, U> MaxAlignsOf<T, U> {
146 | ^ required by this bound in `MaxAlignsOf::<T, U>::new`
147 | #[inline(never)] // Make `missing_inline_in_public_items` happy.
148 | pub fn new(_t: T, _u: U) -> MaxAlignsOf<T, U> {
149 | --- required by a bound in this associated function
150 = 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)
151
152 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
153 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
154 |
155 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [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 `MaxAlignsOf`
160 --> src/macro_util.rs
161 |
162 | pub union MaxAlignsOf<T, U> {
163 | ^ required by this bound in `MaxAlignsOf`
164 = 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)
165
166 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
167 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
168 |
169 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
170 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
171 |
172 = help: the trait `Sized` is not implemented for `[u8]`
173 note: required by a bound in `AlignOf`
174 --> src/macro_util.rs
175 |
176 | pub struct AlignOf<T> {
177 | ^ required by this bound in `AlignOf`
178 = 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)
179
180 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
181 --> tests/ui-stable/transmute-mut-src-unsized.rs:16:35
182 |
183 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
184 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
185 | |
186 | doesn't have a size known at compile-time
187 | required by a bound introduced by this call
188 |
189 = help: the trait `Sized` is not implemented for `[u8]`
190 note: required by a bound in `transmute_mut`
191 --> src/macro_util.rs
192 |
193 | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
194 | ^^^ required by this bound in `transmute_mut`
195 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)