fix a Stacked Borrows test whose output changed
This commit is contained in:
parent
c60efa0c69
commit
393ce98b32
1 changed files with 1 additions and 1 deletions
|
|
@ -3,6 +3,6 @@ static X: usize = 5;
|
|||
#[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
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue