]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/stacked_borrows/return_invalid_mut_tuple.rs
adjust compile-fail error messages
[rust.git] / tests / compile-fail / stacked_borrows / return_invalid_mut_tuple.rs
index bb712e9e486cd6d977edaa4cafe5b5e18c2f24d3..8b73df4bd1ac343fd7e6644bb1fea8587f344243 100644 (file)
@@ -3,7 +3,7 @@ fn foo(x: &mut (i32, i32)) -> (&mut i32,) {
     let xraw = x as *mut (i32, i32);
     let ret = (unsafe { &mut (*xraw).1 },);
     let _val = unsafe { *xraw }; // invalidate xref
-    ret //~ ERROR does not exist on the borrow stack
+    ret //~ ERROR borrow stack
 }
 
 fn main() {