rust/tests/ui/zero_ptr.rs
2017-08-01 17:54:21 +02:00

12 lines
218 B
Rust

#![feature(plugin)]
#![plugin(clippy)]
#[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
}