blob: a07b75e29d5bd168493a9017c0801bb7f6cf6ff7 [file] [log] [blame]
error[E0512]: transmute called with types of different sizes
--> $DIR/transmute-different-sizes.rs:21:17
|
LL | let _: i8 = transmute(16i16);
| ^^^^^^^^^
|
= note: source type: i16 (N bits)
= note: target type: i8 (N bits)
error[E0512]: transmute called with types of different sizes
--> $DIR/transmute-different-sizes.rs:26:17
|
LL | let _: i8 = transmute(x);
| ^^^^^^^^^
|
= note: source type: &T (N bits)
= note: target type: i8 (N bits)
error[E0512]: transmute called with types of different sizes
--> $DIR/transmute-different-sizes.rs:37:5
|
LL | transmute(x)
| ^^^^^^^^^
|
= note: source type: u16 (N bits)
= note: target type: <T as Specializable>::Output (this type's size can vary)
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0512`.