| 1 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 2 |
--> tests/ui-nightly/transmute-ref-src-unsized.rs:16:31 |
| 3 |
| |
| 4 |
16 | const SRC_UNSIZED: &[u8; 1] = 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 `AssertIsAsBytes` |
| 12 |
--> tests/ui-nightly/transmute-ref-src-unsized.rs:16:31 |
| 13 |
| |
| 14 |
16 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]); |
| 15 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertIsAsBytes` |
| 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-nightly/transmute-ref-src-unsized.rs:16:31 |
| 20 |
| |
| 21 |
16 | const SRC_UNSIZED: &[u8; 1] = 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 `AssertIsAsBytes` |
| 26 |
--> tests/ui-nightly/transmute-ref-src-unsized.rs:16:31 |
| 27 |
| |
| 28 |
16 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]); |
| 29 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertIsAsBytes` |
| 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-nightly/transmute-ref-src-unsized.rs:16:31 |
| 34 |
| |
| 35 |
16 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]); |
| 36 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 37 |
| |
| 38 |
= help: the trait `Sized` is not implemented for `[u8]` |
| 39 |
= note: all local variables must have a statically known size |
| 40 |
= help: unsized locals are gated as an unstable feature |
| 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-nightly/transmute-ref-src-unsized.rs:16:31 |
| 45 |
| |
| 46 |
16 | const SRC_UNSIZED: &[u8; 1] = 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: required by a bound in `AlignOf::<T>::into_t` |
| 51 |
--> src/macro_util.rs |
| 52 |
| |
| 53 |
| impl<T> AlignOf<T> { |
| 54 |
| ^ required by this bound in `AlignOf::<T>::into_t` |
| 55 |
| #[inline(never)] // Make `missing_inline_in_public_items` happy. |
| 56 |
| pub fn into_t(self) -> T { |
| 57 |
| ------ required by a bound in this associated function |
| 58 |
= 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) |
| 59 |
|
| 60 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 61 |
--> tests/ui-nightly/transmute-ref-src-unsized.rs:16:31 |
| 62 |
| |
| 63 |
16 | const SRC_UNSIZED: &[u8; 1] = 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: the left-hand-side of an assignment must have a statically known size |
| 68 |
= 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) |
| 69 |
|
| 70 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 71 |
--> tests/ui-nightly/transmute-ref-src-unsized.rs:16:31 |
| 72 |
| |
| 73 |
16 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]); |
| 74 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 75 |
| |
| 76 |
= help: the trait `Sized` is not implemented for `[u8]` |
| 77 |
note: required by a bound in `AlignOf` |
| 78 |
--> src/macro_util.rs |
| 79 |
| |
| 80 |
| pub struct AlignOf<T> { |
| 81 |
| ^ required by this bound in `AlignOf` |
| 82 |
= 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) |
| 83 |
|
| 84 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 85 |
--> tests/ui-nightly/transmute-ref-src-unsized.rs:16:31 |
| 86 |
| |
| 87 |
16 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]); |
| 88 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 89 |
| |
| 90 |
= help: the trait `Sized` is not implemented for `[u8]` |
| 91 |
note: required by a bound in `MaxAlignsOf` |
| 92 |
--> src/macro_util.rs |
| 93 |
| |
| 94 |
| pub union MaxAlignsOf<T, U> { |
| 95 |
| ^ required by this bound in `MaxAlignsOf` |
| 96 |
= 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) |
| 97 |
|
| 98 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 99 |
--> tests/ui-nightly/transmute-ref-src-unsized.rs:16:31 |
| 100 |
| |
| 101 |
16 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]); |
| 102 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 103 |
| |
| 104 |
= help: the trait `Sized` is not implemented for `[u8]` |
| 105 |
note: required by a bound in `AlignOf` |
| 106 |
--> src/macro_util.rs |
| 107 |
| |
| 108 |
| pub struct AlignOf<T> { |
| 109 |
| ^ required by this bound in `AlignOf` |
| 110 |
= 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) |
| 111 |
|
| 112 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 113 |
--> tests/ui-nightly/transmute-ref-src-unsized.rs:16:31 |
| 114 |
| |
| 115 |
16 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]); |
| 116 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 117 |
| | |
| 118 |
| doesn't have a size known at compile-time |
| 119 |
| required by a bound introduced by this call |
| 120 |
| |
| 121 |
= help: the trait `Sized` is not implemented for `[u8]` |
| 122 |
note: required by a bound in `transmute_ref` |
| 123 |
--> src/macro_util.rs |
| 124 |
| |
| 125 |
| pub const unsafe fn transmute_ref<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>( |
| 126 |
| ^^^ required by this bound in `transmute_ref` |
| 127 |
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) |