Sha256: d8f4c9f85c59cf24f88e08b3e67796d1218a512e0082100bb63fe38a69186484

Contents?: true

Size: 1.96 KB

Versions: 19

Compression:

Stored size: 1.96 KB

Contents

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
  --> tests/ui-msrv/transmute-mut-size-increase.rs:17:37
   |
17 | const INCREASE_SIZE: &mut [u8; 2] = transmute_mut!(&mut 0u8);
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: `u8` (8 bits)
   = note: target type: `[u8; 2]` (16 bits)
   = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0658]: mutable references are not allowed in constants
  --> tests/ui-msrv/transmute-mut-size-increase.rs:17:52
   |
17 | const INCREASE_SIZE: &mut [u8; 2] = transmute_mut!(&mut 0u8);
   |                                                    ^^^^^^^^
   |
   = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information

error[E0015]: cannot call non-const fn `transmute_mut::<u8, [u8; 2]>` in constants
  --> tests/ui-msrv/transmute-mut-size-increase.rs:17:37
   |
17 | const INCREASE_SIZE: &mut [u8; 2] = transmute_mut!(&mut 0u8);
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: calls in constants are limited to constant functions, tuple structs and tuple variants
   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0716]: temporary value dropped while borrowed
  --> tests/ui-msrv/transmute-mut-size-increase.rs:17:57
   |
17 | const INCREASE_SIZE: &mut [u8; 2] = transmute_mut!(&mut 0u8);
   |                                     --------------------^^^-
   |                                     |                   |
   |                                     |                   creates a temporary which is freed while still in use
   |                                     temporary value is freed at the end of this statement
   |                                     using this value as a constant requires that borrow lasts for `'static`

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-28.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-27.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-26.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-25.0.2 ./ext/cargo-vendor/zerocopy-0.7.35/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-25.0.1 ./ext/cargo-vendor/zerocopy-0.7.35/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-25.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-24.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-23.0.2 ./ext/cargo-vendor/zerocopy-0.7.32/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-22.0.0 ./ext/cargo-vendor/zerocopy-0.7.32/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-21.0.1 ./ext/cargo-vendor/zerocopy-0.7.32/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-20.0.2 ./ext/cargo-vendor/zerocopy-0.7.32/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-20.0.0 ./ext/cargo-vendor/zerocopy-0.7.32/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-18.0.3 ./ext/cargo-vendor/zerocopy-0.7.32/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-17.0.1 ./ext/cargo-vendor/zerocopy-0.7.32/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-17.0.0 ./ext/cargo-vendor/zerocopy-0.7.32/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-16.0.0 ./ext/cargo-vendor/zerocopy-0.7.32/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-15.0.1 ./ext/cargo-vendor/zerocopy-0.7.32/tests/ui-msrv/transmute-mut-size-increase.stderr
wasmtime-15.0.0 ./ext/cargo-vendor/zerocopy-0.7.32/tests/ui-msrv/transmute-mut-size-increase.stderr