]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-cast-pointer-to-float.rs
Rollup merge of #100789 - compiler-errors:issue-99662, r=spastorino
[rust.git] / src / test / ui / typeck / typeck-cast-pointer-to-float.rs
1 fn main() {
2     let x : i16 = 22;
3     ((&x) as *const i16) as f32;
4     //~^ ERROR casting `*const i16` as `f32` is invalid
5 }