summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/typeck-cast-pointer-to-float.rs
blob: 2af7a3cf245193fd861f5192edcad5e55eb4208a (plain)
1
2
3
4
5
fn main() {
    let x : i16 = 22;
    ((&x) as *const i16) as f32;
    //~^ ERROR casting `*const i16` as `f32` is invalid
}