summaryrefslogtreecommitdiff
path: root/tests/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr')
-rw-r--r--tests/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr b/tests/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr
index 4cc1d821d0a..cfc86ff0dc1 100644
--- a/tests/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr
+++ b/tests/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr
@@ -7,7 +7,7 @@ LL | let q = &raw mut *x;
help: consider changing this to be a mutable reference
|
LL | let x = &mut 0;
- | ~~~~~~
+ | +++
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `*const` pointer
--> $DIR/borrow-raw-address-of-deref-mutability.rs:14:13
@@ -18,7 +18,7 @@ LL | let q = &raw mut *x;
help: consider changing this to be a mutable pointer
|
LL | let x = &mut 0 as *const i32;
- | ~~~~~~
+ | +++
error: aborting due to 2 previous errors