Skip to content

Commit 393ce98

Browse files
committed
fix a Stacked Borrows test whose output changed
1 parent c60efa0 commit 393ce98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/compile-fail/stacked_borrows/static_memory_modification.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ static X: usize = 5;
33
#[allow(mutable_transmutes)]
44
fn main() {
55
let _x = unsafe {
6-
std::mem::transmute::<&usize, &mut usize>(&X) //~ ERROR borrow stack
6+
std::mem::transmute::<&usize, &mut usize>(&X) //~ ERROR writing to alloc0 which is read-only
77
};
88
}

0 commit comments

Comments
 (0)