]> git.lizzy.rs Git - rust.git/blob - tests/ui/transmute_64bit.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / transmute_64bit.stderr
1 error: transmute from a `f64` to a pointer
2   --> $DIR/transmute_64bit.rs:7:31
3    |
4 LL |         let _: *const usize = std::mem::transmute(6.0f64);
5    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::wrong-transmute` implied by `-D warnings`
8
9 error: transmute from a `f64` to a pointer
10   --> $DIR/transmute_64bit.rs:9:29
11    |
12 LL |         let _: *mut usize = std::mem::transmute(6.0f64);
13    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to 2 previous errors
16