about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-01-12 10:55:13 +0100
committerGitHub <noreply@github.com>2019-01-12 10:55:13 +0100
commite0cea0db5da9d3671e9c68ebb264d90bd69b2c28 (patch)
tree2eb040cba84ca957438ae395b9df6b3cecbc64bd /src/test/ui/error-codes
parent1fff64a6947a4b78b2bf3dd48789149b2400df70 (diff)
parent29a8386bb3b7ff8434f4b1b5be0fd51a48d93bb3 (diff)
downloadrust-e0cea0db5da9d3671e9c68ebb264d90bd69b2c28.tar.gz
rust-e0cea0db5da9d3671e9c68ebb264d90bd69b2c28.zip
Rollup merge of #57493 - euclio:deref-suggest, r=oli-obk
use structured suggestion when casting a reference
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0606.stderr11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/test/ui/error-codes/E0606.stderr b/src/test/ui/error-codes/E0606.stderr
index bc872b3b79c..89ec4896a2b 100644
--- a/src/test/ui/error-codes/E0606.stderr
+++ b/src/test/ui/error-codes/E0606.stderr
@@ -2,13 +2,10 @@ error[E0606]: casting `&u8` as `u8` is invalid
   --> $DIR/E0606.rs:2:5
    |
 LL |     &0u8 as u8; //~ ERROR E0606
-   |     ^^^^^^^^^^ cannot cast `&u8` as `u8`
-   |
-help: did you mean `*&0u8`?
-  --> $DIR/E0606.rs:2:5
-   |
-LL |     &0u8 as u8; //~ ERROR E0606
-   |     ^^^^
+   |     ----^^^^^^
+   |     |
+   |     cannot cast `&u8` as `u8`
+   |     help: dereference the expression: `*&0u8`
 
 error: aborting due to previous error