summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0606.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/error-codes/E0606.stderr')
-rw-r--r--src/test/ui/error-codes/E0606.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0606.stderr b/src/test/ui/error-codes/E0606.stderr
new file mode 100644
index 000000000..fce24886e
--- /dev/null
+++ b/src/test/ui/error-codes/E0606.stderr
@@ -0,0 +1,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`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0606`.