From 393ce98b32ced200fc443ca411edcb3383bcdef9 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 23 May 2021 12:37:52 +0200 Subject: [PATCH] fix a Stacked Borrows test whose output changed --- .../compile-fail/stacked_borrows/static_memory_modification.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compile-fail/stacked_borrows/static_memory_modification.rs b/tests/compile-fail/stacked_borrows/static_memory_modification.rs index 88ac16494766..55a7f816c034 100644 --- a/tests/compile-fail/stacked_borrows/static_memory_modification.rs +++ b/tests/compile-fail/stacked_borrows/static_memory_modification.rs @@ -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 }; }