]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-cast-wrong-type.rs
Rollup merge of #107004 - compiler-errors:new-solver-new-candidates-2, r=lcnr
[rust.git] / tests / ui / consts / const-cast-wrong-type.rs
1 const a: [u8; 3] = ['h' as u8, 'i' as u8, 0 as u8];
2 const b: *const i8 = &a as *const i8; //~ ERROR mismatched types
3
4 fn main() {
5 }