about summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorEzra Shaw <ezrasure@outlook.com>2023-01-16 20:24:01 +1300
committerEzra Shaw <ezrasure@outlook.com>2023-01-16 20:24:01 +1300
commitca1178f02237fd84649a30b74052da4ef265371f (patch)
treebb89a639c02f331859dd7bec5e26445eed827b00 /tests/ui/error-codes
parent41edaac716dde55b6a9d83ae4da0fba354ae5ba8 (diff)
downloadrust-ca1178f02237fd84649a30b74052da4ef265371f.tar.gz
rust-ca1178f02237fd84649a30b74052da4ef265371f.zip
make `CastError::NeedsDeref` create a `MachineApplicable` suggestion + other misc fixes
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0606.stderr10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/ui/error-codes/E0606.stderr b/tests/ui/error-codes/E0606.stderr
index fce24886eb0..586b1f2fd54 100644
--- a/tests/ui/error-codes/E0606.stderr
+++ b/tests/ui/error-codes/E0606.stderr
@@ -2,10 +2,12 @@ error[E0606]: casting `&u8` as `u8` is invalid
   --> $DIR/E0606.rs:2:5
    |
 LL |     &0u8 as u8;
-   |     ----^^^^^^
-   |     |
-   |     cannot cast `&u8` as `u8`
-   |     help: dereference the expression: `*&0u8`
+   |     ^^^^^^^^^^
+   |
+help: dereference the expression
+   |
+LL |     *&0u8 as u8;
+   |     +
 
 error: aborting due to previous error