about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-04-12 12:25:29 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-04-18 15:37:18 +0200
commitea454746b31cfdd1c9f08b3ea11fff4ef19b58e7 (patch)
tree3c740ff9f29cb763ac34a34b393aaa63d2a30c6d /src/test/ui/error-codes
parent02a7809f1c10ceab7ffe4652f1211cdc3c6fd4c1 (diff)
downloadrust-ea454746b31cfdd1c9f08b3ea11fff4ef19b58e7.tar.gz
rust-ea454746b31cfdd1c9f08b3ea11fff4ef19b58e7.zip
Update the previously checkpointed (but unused by bors) tests to reflect current reality.
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0389.nll.stderr8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/error-codes/E0389.nll.stderr b/src/test/ui/error-codes/E0389.nll.stderr
index 13ba653a5ca..0525e16239d 100644
--- a/src/test/ui/error-codes/E0389.nll.stderr
+++ b/src/test/ui/error-codes/E0389.nll.stderr
@@ -1,10 +1,10 @@
-error[E0594]: cannot assign to immutable item `fancy_ref.num`
+error[E0594]: cannot assign to data in a `&` reference
   --> $DIR/E0389.rs:18:5
    |
+LL |     let fancy_ref = &(&mut fancy);
+   |                     ------------- help: consider changing this to be a mutable reference: `&mut (&mut fancy)`
 LL |     fancy_ref.num = 6; //~ ERROR E0389
-   |     ^^^^^^^^^^^^^^^^^ cannot mutate
-   |
-   = note: Value not mutable causing this error: `*fancy_ref`
+   |     ^^^^^^^^^^^^^^^^^ `fancy_ref` is a `&` reference, so the data it refers to cannot be written
 
 error: aborting due to previous error