]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/typeck-cast-pointer-to-float.rs
Rollup merge of #106860 - anden3:doc-double-spaces, r=Dylan-DPC
[rust.git] / tests / 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 }