1 #![allow(unused_variables)]
4 // This makes a ref that was passed to us via &mut alias with things it should not alias with
5 pub(crate) fn safe(x
: &mut &u32, target
: &mut u32) {
6 unsafe { *x = &mut *(target as *mut _); }
12 let mut target_alias
= &42; // initial dummy value
13 safe
::safe(&mut target_alias
, target
); //~ ERROR: in conflict with lock ReadLock