mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
12 lines
181 B
Rust
12 lines
181 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
|
|
}
|