]> git.lizzy.rs Git - rust.git/blob - tests/ui/transmute_64bit.stderr
Addition `manual_map` test for `unsafe` blocks
[rust.git] / tests / ui / transmute_64bit.stderr
1 error: transmute from a `f64` to a pointer
2   --> $DIR/transmute_64bit.rs:6: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:8:29
11    |
12 LL |         let _: *mut usize = std::mem::transmute(6.0f64);
13    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to 2 previous errors
16