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

16 lines
343 B
Rust

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