rust-clippy/tests/ui/transmute_64bit.rs
Luis de Bethencourt 81ee7f752e clean tests/ui/transmute.rs
Cleaning the empty lines for clarity.
2017-05-11 16:22:32 +01:00

13 lines
247 B
Rust

//ignore-x86
//no-ignore-x86_64
#![feature(plugin)]
#![plugin(clippy)]
#[deny(wrong_transmute)]
fn main() {
unsafe {
let _: *const usize = std::mem::transmute(6.0f64);
let _: *mut usize = std::mem::transmute(6.0f64);
}
}