summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0606.stderr
blob: 89ec4896a2b4329b459efcc30c9fe5a41b9f60d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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: dereference the expression: `*&0u8`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0606`.