1 // We want to test that granting a SharedReadWrite will be added
2 // *below* an already granted Unique -- so writing to
3 // the SharedReadWrite will invalidate the Unique.
10 let x = &mut Cell::new(0);
11 let y: &mut Cell<i32> = mem::transmute(&mut *x); // launder lifetime
12 let shr_rw = &*x; // thanks to interior mutability this will be a SharedReadWrite
14 y.get_mut(); //~ ERROR: /retag .* tag does not exist in the borrow stack/