Debian Codegraph @

third_party/rust/zerocopy/tests/ui-msrv/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-msrv/transmute-ref-src-dst-unsized.rs:17:32
3 |
4 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6 |
7 = help: the trait `Sized` is not implemented for `[u8]`
8 note: required by a bound in `AssertIsAsBytes`
9 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
10 |
11 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertIsAsBytes`
13 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
16 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
17 |
18 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
20 |
21 = help: the trait `Sized` is not implemented for `[u8]`
22 note: required by a bound in `AssertIsAsBytes`
23 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
24 |
25 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertIsAsBytes`
27 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
30 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
31 |
32 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
34 |
35 = help: the trait `Sized` is not implemented for `[u8]`
36 note: required by a bound in `AssertIsFromBytes`
37 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
38 |
39 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertIsFromBytes`
41 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
42
43 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
44 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
45 |
46 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[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_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
53
54 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
55 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
56 |
57 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
58 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
59 |
60 = help: the trait `Sized` is not implemented for `[u8]`
61 note: 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
68 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
69 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
70 |
71 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
72 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
73 |
74 = help: the trait `Sized` is not implemented for `[u8]`
75 note: required by a bound in `AlignOf::<T>::into_t`
76 --> src/macro_util.rs
77 |
78 | impl<T> AlignOf<T> {
79 | ^ required by this bound in `AlignOf::<T>::into_t`
80 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
81
82 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
83 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
84 |
85 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
87 |
88 = help: the trait `Sized` is not implemented for `[u8]`
89 = note: the left-hand-side of an assignment must have a statically known size
90 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
91
92 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
93 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
94 |
95 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
96 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
97 |
98 = help: the trait `Sized` is not implemented for `[u8]`
99 note: required by a bound in `AlignOf`
100 --> src/macro_util.rs
101 |
102 | pub struct AlignOf<T> {
103 | ^ required by this bound in `AlignOf`
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
106 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
107 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
108 |
109 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
111 |
112 = help: the trait `Sized` is not implemented for `[u8]`
113 note: required by a bound in `MaxAlignsOf::<T, U>::new`
114 --> src/macro_util.rs
115 |
116 | impl<T, U> MaxAlignsOf<T, U> {
117 | ^ required by this bound in `MaxAlignsOf::<T, U>::new`
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
120 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
121 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
122 |
123 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
124 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
125 |
126 = help: the trait `Sized` is not implemented for `[u8]`
127 note: required by a bound in `MaxAlignsOf`
128 --> src/macro_util.rs
129 |
130 | pub union MaxAlignsOf<T, U> {
131 | ^ required by this bound in `MaxAlignsOf`
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
134 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
135 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
136 |
137 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
138 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
139 |
140 = help: the trait `Sized` is not implemented for `[u8]`
141 note: 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
148 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
149 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
150 |
151 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
152 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
153 |
154 = help: the trait `Sized` is not implemented for `[u8]`
155 note: required by a bound in `AlignOf`
156 --> src/macro_util.rs
157 |
158 | pub struct AlignOf<T> {
159 | ^ required by this bound in `AlignOf`
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
162 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
163 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
164 |
165 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
166 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
167 |
168 = help: the trait `Sized` is not implemented for `[u8]`
169 = note: all local variables must have a statically known size
170 = help: unsized locals are gated as an unstable feature
171 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
172
173 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
174 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
175 |
176 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
177 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
178 |
179 = help: the trait `Sized` is not implemented for `[u8]`
180 note: required by a bound in `transmute_ref`
181 --> src/macro_util.rs
182 |
183 | pub const unsafe fn transmute_ref<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
184 | ^^^ required by this bound in `transmute_ref`
185 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
186
187 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
188 --> tests/ui-msrv/transmute-ref-src-dst-unsized.rs:17:32
189 |
190 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
191 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
192 |
193 = help: the trait `Sized` is not implemented for `[u8]`
194 = note: all function arguments must have a statically known size
195 = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)