We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f9b9ce commit 2cdd83aCopy full SHA for 2cdd83a
1 file changed
src/tools/miri/tests/fail/stacked_borrows/static_memory_modification.rs
@@ -3,6 +3,6 @@ static X: usize = 5;
3
#[allow(mutable_transmutes)]
4
fn main() {
5
let _x = unsafe {
6
- std::mem::transmute::<&usize, &mut usize>(&X) //~ ERROR: writing to alloc1 which is read-only
+ std::mem::transmute::<&usize, &mut usize>(&X) //~ ERROR: writing to alloc2 which is read-only
7
};
8
}
0 commit comments