• 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-dst-unsized.rs:17:28
3   |
417 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
5   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6   |
7   = help: the trait `Sized` is not implemented for `[u8]`
8note: required by `AssertDstIsSized`
9  --> tests/ui-msrv/transmute-ref-dst-unsized.rs:17:28
10   |
1117 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
12   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^
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-dst-unsized.rs:17:28
17   |
1817 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
19   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
20   |
21   = help: the trait `Sized` is not implemented for `[u8]`
22   = note: all local variables must have a statically known size
23   = help: unsized locals are gated as an unstable feature
24   = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
25
26error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
27  --> tests/ui-msrv/transmute-ref-dst-unsized.rs:17:28
28   |
2917 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
30   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
31   |
32   = help: the trait `Sized` is not implemented for `[u8]`
33note: required by a bound in `MaxAlignsOf`
34  --> src/util/macro_util.rs
35   |
36   | pub union MaxAlignsOf<T, U> {
37   |                          ^ required by this bound in `MaxAlignsOf`
38   = note: this error originates in the macro `$crate::assert_align_gt_eq` (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-dst-unsized.rs:17:28
42   |
4317 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
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-dst-unsized.rs:17:28
56   |
5717 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
58   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
59   |
60   = help: the trait `Sized` is not implemented for `[u8]`
61note: required by `MaxAlignsOf::<T, U>::new`
62  --> src/util/macro_util.rs
63   |
64   |     pub fn new(_t: T, _u: U) -> MaxAlignsOf<T, U> {
65   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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-dst-unsized.rs:17:28
70   |
7117 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
72   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
73   |
74   = help: the trait `Sized` is not implemented for `[u8]`
75note: required by a bound in `MaxAlignsOf`
76  --> src/util/macro_util.rs
77   |
78   | pub union MaxAlignsOf<T, U> {
79   |                          ^ required by this bound in `MaxAlignsOf`
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
82error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
83  --> tests/ui-msrv/transmute-ref-dst-unsized.rs:17:28
84   |
8517 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
86   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
87   |
88   = help: the trait `Sized` is not implemented for `[u8]`
89note: required by a bound in `transmute_ref`
90  --> src/util/macro_util.rs
91   |
92   | pub const unsafe fn transmute_ref<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
93   |                                                                ^^^ required by this bound in `transmute_ref`
94   = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
95