]> git.lizzy.rs Git - rust.git/blob - tests/ui/transmute_64bit.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / transmute_64bit.rs
1 #![feature(tool_lints)]
2
3 //ignore-x86
4 //no-ignore-x86_64
5
6
7
8 #[warn(clippy::wrong_transmute)]
9 fn main() {
10     unsafe {
11         let _: *const usize = std::mem::transmute(6.0f64);
12
13         let _: *mut usize = std::mem::transmute(6.0f64);
14     }
15 }