4 // Make sure &mut UnsafeCell also is exclusive
5 pub fn safe(_x: &i32, _y: &mut Cell<i32>) {} //~ ERROR: protect
10 let xraw: *mut i32 = unsafe { mem::transmute_copy(&xref) };
12 // transmute fn ptr around so that we can avoid retagging
13 let safe_raw: fn(x: *const i32, y: *mut Cell<i32>) =
14 unsafe { mem::transmute::<fn(&i32, &mut Cell<i32>), _>(safe) };
15 safe_raw(xshr, xraw as *mut _);