1 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
7 = note: `<C as TypeConstructor>::T` does not have a fixed size
9 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
10 --> $DIR/main.rs:17:17
12 LL | let x: u8 = transmute(10u16);
15 = note: source type: `u16` (16 bits)
16 = note: target type: `u8` (8 bits)
18 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
19 --> $DIR/main.rs:21:17
21 LL | let x: u8 = transmute("test");
24 = note: source type: `&str` ($STR bits)
25 = note: target type: `u8` (8 bits)
27 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
28 --> $DIR/main.rs:26:18
30 LL | let x: Foo = transmute(10);
33 = note: source type: `i32` (32 bits)
34 = note: target type: `Foo` (0 bits)
36 error: aborting due to 4 previous errors
38 For more information about this error, try `rustc --explain E0512`.