Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-stable/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-stable/transmute-ref-src-dst-unsized.rs:17:32
3 |
4 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[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 `AssertSrcIsSized`
12 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
13 |
14 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsSized`
16 = note: this error originates in the macro `transmute_ref` (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-ref-src-dst-unsized.rs:17:32
20 |
21 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[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 `AssertSrcIsSized`
26 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
27 |
28 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsSized`
30 = note: this error originates in the macro `transmute_ref` (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-ref-src-dst-unsized.rs:17:32
34 |
35 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[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 `AssertDstIsSized`
43 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
44 |
45 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsSized`
47 = note: this error originates in the macro `transmute_ref` (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-ref-src-dst-unsized.rs:17:32
51 |
52 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[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_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
59
60 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
61 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
62 |
63 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
64 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
65 |
66 = help: the trait `Sized` is not implemented for `[u8]`
67 note: 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_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
76
77 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
78 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
79 |
80 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[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_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
86
87 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
88 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
89 |
90 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
91 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
92 |
93 = help: the trait `Sized` is not implemented for `[u8]`
94 note: 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_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
100
101 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
102 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
103 |
104 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
105 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
106 |
107 = help: the trait `Sized` is not implemented for `[u8]`
108 note: 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_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
114
115 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
116 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
117 |
118 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
120 |
121 = help: the trait `Sized` is not implemented for `[u8]`
122 note: 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_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
128
129 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
130 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
131 |
132 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[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_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
139
140 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
141 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
142 |
143 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
144 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
145 |
146 = help: the trait `Sized` is not implemented for `[u8]`
147 note: required by an implicit `Sized` bound in `std::intrinsics::transmute`
148 --> $RUST/core/src/intrinsics/mod.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_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
153
154 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
155 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
156 |
157 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[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]`
164 note: required by an implicit `Sized` bound in `transmute_ref`
165 --> src/util/macro_util.rs
166 |
167 | pub const unsafe fn transmute_ref<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
168 | ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute_ref`
169 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
170
171 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
172 --> tests/ui-stable/transmute-ref-src-dst-unsized.rs:17:32
173 |
174 17 | const SRC_DST_UNSIZED: &[u8] = transmute_ref!(&[0u8][..]);
175 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
176 |
177 = help: the trait `Sized` is not implemented for `[u8]`
178 note: required by an implicit `Sized` bound in `transmute_ref`
179 --> src/util/macro_util.rs
180 |
181 | pub const unsafe fn transmute_ref<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
182 | ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute_ref`
183 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)