2022-01-09 16:15:23 -06:00
|
|
|
error: transmuting &T to &mut T is undefined behavior, even if the reference is unused, consider instead using an UnsafeCell
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/transmute-imut-to-mut.rs:6:32
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _a: &mut u8 = unsafe { transmute(&1u8) };
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2019-07-16 15:17:38 -05:00
|
|
|
= note: `#[deny(mutable_transmutes)]` on by default
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|