1 // Tests that transmuting from &T to &mut T is Undefined Behavior.
3 use std::mem::transmute;
6 let _a: &mut u8 = unsafe { transmute(&1u8) };
7 //~^ ERROR transmuting &T to &mut T is undefined behavior, even if the reference is unused, consider instead using an UnsafeCell