1 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2 --> $DIR/transmute_32bit.rs:6:31
4 LL | let _: *const usize = std::mem::transmute(6.0f32);
7 = note: source type: `f32` (32 bits)
8 = note: target type: `*const usize` (64 bits)
10 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
11 --> $DIR/transmute_32bit.rs:8:29
13 LL | let _: *mut usize = std::mem::transmute(6.0f32);
16 = note: source type: `f32` (32 bits)
17 = note: target type: `*mut usize` (64 bits)
19 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
20 --> $DIR/transmute_32bit.rs:10:31
22 LL | let _: *const usize = std::mem::transmute('x');
25 = note: source type: `char` (32 bits)
26 = note: target type: `*const usize` (64 bits)
28 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
29 --> $DIR/transmute_32bit.rs:12:29
31 LL | let _: *mut usize = std::mem::transmute('x');
34 = note: source type: `char` (32 bits)
35 = note: target type: `*mut usize` (64 bits)
37 error: aborting due to 4 previous errors
39 For more information about this error, try `rustc --explain E0512`.