]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-cast-wrong-type.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-cast-wrong-type.rs
1 static a: [u8; 3] = ['h' as u8, 'i' as u8, 0 as u8];
2 static b: *const i8 = &a as *const i8; //~ ERROR mismatched types
3
4 fn main() {
5 }