]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/transmute_64bit.rs
Rollup merge of #98609 - TaKO8Ki:fix-ice-for-associated-constant-generics, r=lcnr
[rust.git] / src / tools / clippy / tests / ui / transmute_64bit.rs
1 // ignore-32bit
2
3 #[warn(clippy::wrong_transmute)]
4 fn main() {
5     unsafe {
6         let _: *const usize = std::mem::transmute(6.0f64);
7
8         let _: *mut usize = std::mem::transmute(6.0f64);
9     }
10 }