2022-06-29 11:29:51 +09:00
|
|
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
2025-02-21 19:22:08 +00:00
|
|
|
--> $DIR/issue-79494.rs:5:33
|
2022-06-29 11:29:51 +09:00
|
|
|
|
|
2025-02-21 19:22:08 +00:00
|
|
|
LL | pub const ZST: &[u8] = unsafe { std::mem::transmute(1usize) };
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2022-06-29 11:29:51 +09:00
|
|
|
|
|
|
|
|
|
= note: source type: `usize` (64 bits)
|
|
|
|
|
= note: target type: `&[u8]` (128 bits)
|
|
|
|
|
|
2023-11-21 20:26:31 +01:00
|
|
|
error: aborting due to 1 previous error
|
2022-06-29 11:29:51 +09:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0512`.
|