]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/stacked_borrows/pass_invalid_mut.rs
adjust compile-fail error messages
[rust.git] / tests / compile-fail / stacked_borrows / pass_invalid_mut.rs
index b239237f019928e4a22209fba51a97859f143128..d8a53b7a96309ecc249344b4f38a096763ff586c 100644 (file)
@@ -6,5 +6,5 @@ fn main() {
     let xraw = x as *mut _;
     let xref = unsafe { &mut *xraw };
     let _val = unsafe { *xraw }; // invalidate xref
-    foo(xref); //~ ERROR does not exist on the borrow stack
+    foo(xref); //~ ERROR borrow stack
 }