mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
11 lines
372 B
Plaintext
11 lines
372 B
Plaintext
error: transmuting &T to &mut T is undefined behavior, even if the reference is unused, consider instead using an UnsafeCell
|
|
--> $DIR/transmute-imut-to-mut.rs:6:32
|
|
|
|
|
LL | let _a: &mut u8 = unsafe { transmute(&1u8) };
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: `#[deny(mutable_transmutes)]` on by default
|
|
|
|
error: aborting due to previous error
|
|
|