184 lines
11 KiB
Plaintext
184 lines
11 KiB
Plaintext
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
| |
|
|
| doesn't have a size known at compile-time
|
|
| required by a bound introduced by this call
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
note: required by a bound in `AssertSrcIsSized`
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsSized`
|
|
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
note: required by a bound in `AssertSrcIsSized`
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsSized`
|
|
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
| |
|
|
| doesn't have a size known at compile-time
|
|
| required by a bound introduced by this call
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
note: required by a bound in `AssertDstIsSized`
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsSized`
|
|
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
= note: all local variables must have a statically known size
|
|
= help: unsized locals are gated as an unstable feature
|
|
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
note: required by a bound in `AlignOf::<T>::into_t`
|
|
--> src/util/macro_util.rs
|
|
|
|
|
| impl<T> AlignOf<T> {
|
|
| ^ required by this bound in `AlignOf::<T>::into_t`
|
|
...
|
|
| pub fn into_t(self) -> T {
|
|
| ------ required by a bound in this associated function
|
|
= note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
= note: the left-hand-side of an assignment must have a statically known size
|
|
= note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
note: required by an implicit `Sized` bound in `AlignOf`
|
|
--> src/util/macro_util.rs
|
|
|
|
|
| pub struct AlignOf<T> {
|
|
| ^ required by the implicit `Sized` requirement on this type parameter in `AlignOf`
|
|
= note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
note: required by an implicit `Sized` bound in `MaxAlignsOf`
|
|
--> src/util/macro_util.rs
|
|
|
|
|
| pub union MaxAlignsOf<T, U> {
|
|
| ^ required by the implicit `Sized` requirement on this type parameter in `MaxAlignsOf`
|
|
= note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
note: required by an implicit `Sized` bound in `AlignOf`
|
|
--> src/util/macro_util.rs
|
|
|
|
|
| pub struct AlignOf<T> {
|
|
| ^ required by the implicit `Sized` requirement on this type parameter in `AlignOf`
|
|
= note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
= note: all local variables must have a statically known size
|
|
= help: unsized locals are gated as an unstable feature
|
|
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
note: required by an implicit `Sized` bound in `std::intrinsics::transmute`
|
|
--> $RUST/core/src/intrinsics/mod.rs
|
|
|
|
|
| pub const unsafe fn transmute<Src, Dst>(src: Src) -> Dst;
|
|
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
|
|
= note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
| |
|
|
| doesn't have a size known at compile-time
|
|
| required by a bound introduced by this call
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
note: required by an implicit `Sized` bound in `transmute_mut`
|
|
--> src/util/macro_util.rs
|
|
|
|
|
| pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
|
|
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute_mut`
|
|
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
--> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
|
|
|
|
|
17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
note: required by an implicit `Sized` bound in `transmute_mut`
|
|
--> src/util/macro_util.rs
|
|
|
|
|
| pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
|
|
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute_mut`
|
|
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
|