blob: ee186636e4ebe0fe61c7127b2153a658d78505c7 (
plain)
1
2
3
4
5
6
7
8
9
|
error[E0308]: mismatched types
--> $DIR/const-cast-wrong-type.rs:2:22
|
LL | const b: *const i8 = &a as *const i8;
| ^^^^^^^^^^^^^^^ expected `u8`, found `i8`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
|