You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> src/lib.rs:2:14
|
2 | unsafe { std::mem::transmute::<_, _>(src) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `[i32; N]` does not have a fixed size
Note: this also reproduces with the current beta (1.51.0-beta.2) on the Rust Playground [link].
Backtrace
$ RUST_BACKTRACE=1 cargo build
Compiling transmute_no_fixed_size_with_min_const_generics v0.1.0 (/home/jonas/Code/issues/rust/transmute_no_fixed_size_with_min_const_generics)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> src/lib.rs:2:14
|
2 | unsafe { std::mem::transmute::<_, _>(src) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `[i32; N]` does not have a fixed size
error: aborting due to previous error
For more information about this error, try `rustc --explain E0512`.
error: could not compile `transmute_no_fixed_size_with_min_const_generics`
To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered:
I tried this code:
I expected a successful compilation.
Instead, this happened:
Meta
rustc --version --verbose
:Note: this also reproduces with the current beta (
1.51.0-beta.2
) on the Rust Playground [link].Backtrace
The text was updated successfully, but these errors were encountered: