]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-cast-wrong-type.stderr
Rollup merge of #106949 - compiler-errors:is-poly, r=BoxyUwU
[rust.git] / tests / ui / consts / const-cast-wrong-type.stderr
1 error[E0308]: mismatched types
2   --> $DIR/const-cast-wrong-type.rs:2:22
3    |
4 LL | const b: *const i8 = &a as *const i8;
5    |                      ^^^^^^^^^^^^^^^ expected `u8`, found `i8`
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0308`.