rust/tests/ui/zero_ptr.rs
2019-01-08 21:46:39 +01:00

9 lines
178 B
Rust

#[allow(unused_variables)]
fn main() {
let x = 0 as *const usize;
let y = 0 as *mut f64;
let z = 0;
let z = z as *const usize; // this is currently not caught
}