fix a Stacked Borrows test whose output changed

This commit is contained in:
Ralf Jung
2021-05-23 12:37:52 +02:00
parent c60efa0c69
commit 393ce98b32
@@ -3,6 +3,6 @@
#[allow(mutable_transmutes)]
fn main() {
let _x = unsafe {
std::mem::transmute::<&usize, &mut usize>(&X) //~ ERROR borrow stack
std::mem::transmute::<&usize, &mut usize>(&X) //~ ERROR writing to alloc0 which is read-only
};
}