]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/stacked_borrows/illegal_write2.rs
adjust compile-fail error messages
[rust.git] / tests / compile-fail / stacked_borrows / illegal_write2.rs
index affa21c7625ead98ae207921dc55d799ca4545f1..62ea05e1811e717d60c1636449e9592369c5b714 100644 (file)
@@ -3,6 +3,6 @@ fn main() {
     let target2 = target as *mut _;
     drop(&mut *target); // reborrow
     // Now make sure our ref is still the only one.
-    unsafe { *target2 = 13; } //~ ERROR does not exist on the borrow stack
+    unsafe { *target2 = 13; } //~ ERROR borrow stack
     let _val = *target;
 }