error[E0308]: mismatched types | |
--> $DIR/const-cast-wrong-type.rs:12:23 | |
| | |
LL | static b: *const i8 = &a as *const i8; //~ ERROR mismatched types | |
| ^^^^^^^^^^^^^^^ expected u8, found i8 | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0308`. |