error[E0308]: mismatched types | |
--> $DIR/const-cast-wrong-type.rs:2:23 | |
| | |
LL | static 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`. |