1 // Make sure that creating a raw ptr next to a shared ref works
2 // but the shared ref still gets invalidated when the raw ptr is used for writing.
8 let y1: &i32 = mem::transmute(&*x); // launder lifetimes
13 let _fail = *y1; //~ ERROR: /read access .* tag does not exist in the borrow stack/