1 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2 --> $DIR/transmute-type-parameters.rs:6:18
4 LL | let _: i32 = transmute(x);
7 = note: source type: `T` (this type does not have a fixed size)
8 = note: target type: `i32` (32 bits)
10 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
11 --> $DIR/transmute-type-parameters.rs:11:18
13 LL | let _: i32 = transmute(x);
16 = note: source type: `(T, i32)` (size can vary because of T)
17 = note: target type: `i32` (32 bits)
19 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
20 --> $DIR/transmute-type-parameters.rs:16:18
22 LL | let _: i32 = transmute(x);
25 = note: source type: `[T; 10]` (size can vary because of T)
26 = note: target type: `i32` (32 bits)
28 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
29 --> $DIR/transmute-type-parameters.rs:25:18
31 LL | let _: i32 = transmute(x);
34 = note: source type: `Bad<T>` (size can vary because of T)
35 = note: target type: `i32` (32 bits)
37 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
38 --> $DIR/transmute-type-parameters.rs:35:18
40 LL | let _: i32 = transmute(x);
43 = note: source type: `Worse<T>` (size can vary because of T)
44 = note: target type: `i32` (32 bits)
46 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
47 --> $DIR/transmute-type-parameters.rs:40:18
49 LL | let _: i32 = transmute(x);
52 = note: source type: `std::option::Option<T>` (size can vary because of T)
53 = note: target type: `i32` (32 bits)
55 error: aborting due to 6 previous errors
57 For more information about this error, try `rustc --explain E0512`.