]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/stacked_borrows/pointer_smuggling.rs
adjust compile-fail error messages
[rust.git] / tests / compile-fail / stacked_borrows / pointer_smuggling.rs
index a8207d58e99b23dccaf4a144175b61c8c96ab8d4..f724cdd2a7694e7f2261b1c061eec1ca95e99b16 100644 (file)
@@ -8,7 +8,7 @@ fn fun1(x: &mut u8) {
 
 fn fun2() {
     // Now we use a pointer we are not allowed to use
-    let _x = unsafe { *PTR }; //~ ERROR does not exist on the borrow stack
+    let _x = unsafe { *PTR }; //~ ERROR borrow stack
 }
 
 fn main() {