2018-12-21 08:15:47 -06:00
|
|
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
2020-10-04 15:24:14 -05:00
|
|
|
--> $DIR/main.rs:17:17
|
2017-05-29 18:22:41 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let x: u8 = transmute(10u16);
|
2017-05-29 18:22:41 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2018-12-21 08:15:47 -06:00
|
|
|
= note: source type: `u16` (16 bits)
|
|
|
|
= note: target type: `u8` (8 bits)
|
2017-05-29 18:22:41 -05:00
|
|
|
|
2018-12-21 08:15:47 -06:00
|
|
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
2020-10-04 15:24:14 -05:00
|
|
|
--> $DIR/main.rs:21:17
|
2017-05-29 18:22:41 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let x: u8 = transmute("test");
|
2017-05-29 18:22:41 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2018-12-30 03:56:59 -06:00
|
|
|
= note: source type: `&str` ($STR bits)
|
2018-12-21 08:15:47 -06:00
|
|
|
= note: target type: `u8` (8 bits)
|
2017-05-29 18:22:41 -05:00
|
|
|
|
2018-12-21 08:15:47 -06:00
|
|
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
2020-10-04 15:24:14 -05:00
|
|
|
--> $DIR/main.rs:26:18
|
2017-05-29 18:22:41 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let x: Foo = transmute(10);
|
2017-05-29 18:22:41 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2018-12-21 08:15:47 -06:00
|
|
|
= note: source type: `i32` (32 bits)
|
|
|
|
= note: target type: `Foo` (0 bits)
|
2017-05-29 18:22:41 -05:00
|
|
|
|
2022-09-07 02:51:11 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2017-05-29 18:22:41 -05:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0512`.
|