]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/transmute_32bit.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / transmute_32bit.stderr
CommitLineData
f20569fa
XL
1error: transmute from a `f32` to a pointer
2 --> $DIR/transmute_32bit.rs:6:31
3 |
4LL | let _: *const usize = std::mem::transmute(6.0f32);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `-D clippy::wrong-transmute` implied by `-D warnings`
8
9error: transmute from a `f32` to a pointer
10 --> $DIR/transmute_32bit.rs:8:29
11 |
12LL | let _: *mut usize = std::mem::transmute(6.0f32);
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15error: transmute from a `char` to a pointer
16 --> $DIR/transmute_32bit.rs:10:31
17 |
18LL | let _: *const usize = std::mem::transmute('x');
19 | ^^^^^^^^^^^^^^^^^^^^^^^^
20
21error: transmute from a `char` to a pointer
22 --> $DIR/transmute_32bit.rs:12:29
23 |
24LL | let _: *mut usize = std::mem::transmute('x');
25 | ^^^^^^^^^^^^^^^^^^^^^^^^
26
27error: aborting due to 4 previous errors
28