• 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-ref-src-unsized.rs:16:31
3   |
416 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[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 `AssertIsAsBytes`
9  --> tests/ui-msrv/transmute-ref-src-unsized.rs:16:31
10   |
1116 | const SRC_UNSIZED: &[u8; 1] = 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
15error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
16  --> tests/ui-msrv/transmute-ref-src-unsized.rs:16:31
17   |
1816 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[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 `AssertIsAsBytes`
23  --> tests/ui-msrv/transmute-ref-src-unsized.rs:16:31
24   |
2516 | const SRC_UNSIZED: &[u8; 1] = 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
29error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
30  --> tests/ui-msrv/transmute-ref-src-unsized.rs:16:31
31   |
3216 | const SRC_UNSIZED: &[u8; 1] = 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: all local variables must have a statically known size
37   = help: unsized locals are gated as an unstable feature
38   = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
39
40error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
41  --> tests/ui-msrv/transmute-ref-src-unsized.rs:16:31
42   |
4316 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]);
44   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
45   |
46   = help: the trait `Sized` is not implemented for `[u8]`
47note: required by a bound in `transmute`
48  --> $RUST/core/src/intrinsics.rs
49   |
50   |     pub fn transmute<T, U>(e: T) -> U;
51   |                      ^ required by this bound in `transmute`
52   = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
53
54error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
55  --> tests/ui-msrv/transmute-ref-src-unsized.rs:16:31
56   |
5716 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]);
58   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
59   |
60   = help: the trait `Sized` is not implemented for `[u8]`
61note: required by a bound in `AlignOf::<T>::into_t`
62  --> src/macro_util.rs
63   |
64   | impl<T> AlignOf<T> {
65   |      ^ required by this bound in `AlignOf::<T>::into_t`
66   = note: this error originates in the macro `$crate::assert_align_gt_eq` (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-ref-src-unsized.rs:16:31
70   |
7116 | const SRC_UNSIZED: &[u8; 1] = 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: the left-hand-side of an assignment must have a statically known size
76   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
77
78error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
79  --> tests/ui-msrv/transmute-ref-src-unsized.rs:16:31
80   |
8116 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]);
82   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
83   |
84   = help: the trait `Sized` is not implemented for `[u8]`
85note: required by a bound in `AlignOf`
86  --> src/macro_util.rs
87   |
88   | pub struct AlignOf<T> {
89   |                    ^ required by this bound in `AlignOf`
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
92error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
93  --> tests/ui-msrv/transmute-ref-src-unsized.rs:16:31
94   |
9516 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]);
96   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
97   |
98   = help: the trait `Sized` is not implemented for `[u8]`
99note: required by a bound in `MaxAlignsOf::<T, U>::new`
100  --> src/macro_util.rs
101   |
102   | impl<T, U> MaxAlignsOf<T, U> {
103   |      ^ required by this bound in `MaxAlignsOf::<T, U>::new`
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-ref-src-unsized.rs:16:31
108   |
10916 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[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 `MaxAlignsOf`
114  --> src/macro_util.rs
115   |
116   | pub union MaxAlignsOf<T, U> {
117   |                       ^ required by this bound in `MaxAlignsOf`
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-ref-src-unsized.rs:16:31
122   |
12316 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[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`
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
134error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
135  --> tests/ui-msrv/transmute-ref-src-unsized.rs:16:31
136   |
13716 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[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 `AlignOf`
142  --> src/macro_util.rs
143   |
144   | pub struct AlignOf<T> {
145   |                    ^ required by this bound in `AlignOf`
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-ref-src-unsized.rs:16:31
150   |
15116 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[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 `transmute_ref`
156  --> src/macro_util.rs
157   |
158   | pub const unsafe fn transmute_ref<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
159   |                                                     ^^^ required by this bound in `transmute_ref`
160   = note: this error originates in the macro `transmute_ref` (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-ref-src-unsized.rs:16:31
164   |
16516 | const SRC_UNSIZED: &[u8; 1] = 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 function arguments must have a statically known size
170   = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
171