1 static X: usize = 5; 2 3 #[allow(mutable_transmutes)] main()4 fn main() { 5 let _x = unsafe { 6 std::mem::transmute::<&usize, &mut usize>(&X) //~ ERROR writing to alloc1 which is read-only 7 }; 8 } 9