about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorcsmoe <35686186+csmoe@users.noreply.github.com>2018-06-01 21:03:24 +0800
committerashtneoi <ashtneoi@gmail.com>2018-07-12 22:51:30 -0700
commit212da122f798b1a4a58f41c7eeb8111dffaee4cb (patch)
tree0da3ab1dc296e96cf7d270c10f96568db170239d /src
parentaf5edc32df6a30bc7c8caa01bb9700b38354e21f (diff)
downloadrust-212da122f798b1a4a58f41c7eeb8111dffaee4cb.tar.gz
rust-212da122f798b1a4a58f41c7eeb8111dffaee4cb.zip
update test
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/suggestions/issue-51244.rs2
-rw-r--r--src/test/ui/suggestions/issue-51244.stderr4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/suggestions/issue-51244.rs b/src/test/ui/suggestions/issue-51244.rs
index efb8a03a45c..50a21184a98 100644
--- a/src/test/ui/suggestions/issue-51244.rs
+++ b/src/test/ui/suggestions/issue-51244.rs
@@ -10,5 +10,5 @@
 
 fn main() {
     let ref my_ref @ _ = 0;
-    *my_ref = 0;
+    *my_ref = 0; //~ ERROR cannot assign to immutable borrowed content `*my_ref` [E0594]
 }
diff --git a/src/test/ui/suggestions/issue-51244.stderr b/src/test/ui/suggestions/issue-51244.stderr
index f653a2a3359..b4ce2975623 100644
--- a/src/test/ui/suggestions/issue-51244.stderr
+++ b/src/test/ui/suggestions/issue-51244.stderr
@@ -2,8 +2,8 @@ error[E0594]: cannot assign to immutable borrowed content `*my_ref`
   --> $DIR/issue-51244.rs:13:5
    |
 LL |     let ref my_ref @ _ = 0;
-   |         --- consider changing this to `ref mut`
-LL |     *my_ref = 0;
+   |         -------------- consider changing this to `ref mut my_ref @ _`
+LL |     *my_ref = 0; //~ ERROR cannot assign to immutable borrowed content `*my_ref` [E0594]
    |     ^^^^^^^^^^^ cannot borrow as mutable
 
 error: aborting due to previous error