]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/transmute_32bit.stderr
New upstream version 1.71.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / transmute_32bit.stderr
1 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2 --> $DIR/transmute_32bit.rs:6:31
3 |
4 LL | let _: *const usize = std::mem::transmute(6.0f32);
5 | ^^^^^^^^^^^^^^^^^^^
6 |
7 = note: source type: `f32` (32 bits)
8 = note: target type: `*const usize` (64 bits)
9
10 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
11 --> $DIR/transmute_32bit.rs:8:29
12 |
13 LL | let _: *mut usize = std::mem::transmute(6.0f32);
14 | ^^^^^^^^^^^^^^^^^^^
15 |
16 = note: source type: `f32` (32 bits)
17 = note: target type: `*mut usize` (64 bits)
18
19 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
20 --> $DIR/transmute_32bit.rs:10:31
21 |
22 LL | let _: *const usize = std::mem::transmute('x');
23 | ^^^^^^^^^^^^^^^^^^^
24 |
25 = note: source type: `char` (32 bits)
26 = note: target type: `*const usize` (64 bits)
27
28 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
29 --> $DIR/transmute_32bit.rs:12:29
30 |
31 LL | let _: *mut usize = std::mem::transmute('x');
32 | ^^^^^^^^^^^^^^^^^^^
33 |
34 = note: source type: `char` (32 bits)
35 = note: target type: `*mut usize` (64 bits)
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0512`.