mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
58 lines
2 KiB
Plaintext
58 lines
2 KiB
Plaintext
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
--> $DIR/transmute-type-parameters.rs:6:18
|
|
|
|
|
LL | let _: i32 = transmute(x);
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: source type: `T` (this type does not have a fixed size)
|
|
= note: target type: `i32` (32 bits)
|
|
|
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
--> $DIR/transmute-type-parameters.rs:11:18
|
|
|
|
|
LL | let _: i32 = transmute(x);
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: source type: `(T, i32)` (size can vary because of T)
|
|
= note: target type: `i32` (32 bits)
|
|
|
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
--> $DIR/transmute-type-parameters.rs:16:18
|
|
|
|
|
LL | let _: i32 = transmute(x);
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: source type: `[T; 10]` (size can vary because of T)
|
|
= note: target type: `i32` (32 bits)
|
|
|
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
--> $DIR/transmute-type-parameters.rs:25:18
|
|
|
|
|
LL | let _: i32 = transmute(x);
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: source type: `Bad<T>` (size can vary because of T)
|
|
= note: target type: `i32` (32 bits)
|
|
|
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
--> $DIR/transmute-type-parameters.rs:35:18
|
|
|
|
|
LL | let _: i32 = transmute(x);
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: source type: `Worse<T>` (size can vary because of T)
|
|
= note: target type: `i32` (32 bits)
|
|
|
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
--> $DIR/transmute-type-parameters.rs:40:18
|
|
|
|
|
LL | let _: i32 = transmute(x);
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: source type: `Option<T>` (size can vary because of T)
|
|
= note: target type: `i32` (32 bits)
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0512`.
|