]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/stacked_borrows/alias_through_mutation.rs
adjust compile-fail error messages
[rust.git] / tests / compile-fail / stacked_borrows / alias_through_mutation.rs
index 30f5921202c3ffb02b76fc126ee06bf03fcf21da..4a153d74ffb0b35a1eabd18ec0d6e03dfdcb1580 100644 (file)
@@ -9,5 +9,5 @@ fn main() {
     retarget(&mut target_alias, target);
     // now `target_alias` points to the same thing as `target`
     *target = 13;
-    let _val = *target_alias; //~ ERROR does not exist on the borrow stack
+    let _val = *target_alias; //~ ERROR borrow stack
 }