summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0606.stderr
blob: bd5bc908f7294d192c8fb936819bc72d917e64d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0606]: casting `&u8` as `u8` is invalid
  --> $DIR/E0606.rs:12:5
   |
LL |     &0u8 as u8; //~ ERROR E0606
   |     ^^^^^^^^^^ cannot cast `&u8` as `u8`
   |
help: did you mean `*&0u8`?
  --> $DIR/E0606.rs:12:5
   |
LL |     &0u8 as u8; //~ ERROR E0606
   |     ^^^^

error: aborting due to previous error

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