fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0512]: cannot transmute between types of different sizes, or dependently-sized types 2 --> $DIR/main.rs:16:5 3 | 4LL | transmute(x) 5 | ^^^^^^^^^ 6 | 7 = note: source type: `<C as TypeConstructor<'a>>::T` (size can vary because of <C as TypeConstructor>::T) 8 = note: target type: `<C as TypeConstructor<'b>>::T` (size can vary because of <C as TypeConstructor>::T) 9 10error[E0512]: cannot transmute between types of different sizes, or dependently-sized types 11 --> $DIR/main.rs:20:17 12 | 13LL | let x: u8 = transmute(10u16); 14 | ^^^^^^^^^ 15 | 16 = note: source type: `u16` (16 bits) 17 = note: target type: `u8` (8 bits) 18 19error[E0512]: cannot transmute between types of different sizes, or dependently-sized types 20 --> $DIR/main.rs:24:17 21 | 22LL | let x: u8 = transmute("test"); 23 | ^^^^^^^^^ 24 | 25 = note: source type: `&str` ($STR bits) 26 = note: target type: `u8` (8 bits) 27 28error[E0512]: cannot transmute between types of different sizes, or dependently-sized types 29 --> $DIR/main.rs:29:18 30 | 31LL | let x: Foo = transmute(10); 32 | ^^^^^^^^^ 33 | 34 = note: source type: `i32` (32 bits) 35 = note: target type: `Foo` (0 bits) 36 37error: aborting due to 4 previous errors 38 39For more information about this error, try `rustc --explain E0512`.