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