From 29a8386bb3b7ff8434f4b1b5be0fd51a48d93bb3 Mon Sep 17 00:00:00 2001 From: Andy Russell Date: Thu, 10 Jan 2019 13:42:59 -0500 Subject: use structured suggestion when casting a reference --- src/test/ui/error-codes/E0606.stderr | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/test/ui/error-codes') 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 -- cgit 1.4.1-3-g733a5