@@ -4,53 +4,71 @@ error[E0512]: cannot transmute between types of different sizes, or dependently-
44LL | let _: i32 = transmute(x);
55 | ^^^^^^^^^
66 |
7- = note: source type: `T` (this type does not have a fixed size)
8- = note: target type: `i32` (32 bits)
7+ = note: source type: `T`
8+ the type `T` is too generic to determine its layout
9+ the size of this type is unknown at compile-time
10+ = note: target type: `i32`
11+ the type has 32 bits
912
1013error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
1114 --> $DIR/transmute-type-parameters.rs:11:18
1215 |
1316LL | let _: i32 = transmute(x);
1417 | ^^^^^^^^^
1518 |
16- = note: source type: `(T, i32)` (size can vary because of T)
17- = note: target type: `i32` (32 bits)
19+ = note: source type: `(T, i32)`
20+ the type `T` is too generic to determine its layout
21+ the size of this type is unknown at compile-time
22+ = note: target type: `i32`
23+ the type has 32 bits
1824
1925error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2026 --> $DIR/transmute-type-parameters.rs:16:18
2127 |
2228LL | let _: i32 = transmute(x);
2329 | ^^^^^^^^^
2430 |
25- = note: source type: `[T; 10]` (size can vary because of T)
26- = note: target type: `i32` (32 bits)
31+ = note: source type: `[T; 10]`
32+ the type `T` is too generic to determine its layout
33+ the size of this type is unknown at compile-time
34+ = note: target type: `i32`
35+ the type has 32 bits
2736
2837error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2938 --> $DIR/transmute-type-parameters.rs:25:18
3039 |
3140LL | let _: i32 = transmute(x);
3241 | ^^^^^^^^^
3342 |
34- = note: source type: `Bad<T>` (size can vary because of T)
35- = note: target type: `i32` (32 bits)
43+ = note: source type: `Bad<T>`
44+ the type `T` is too generic to determine its layout
45+ the size of this type is unknown at compile-time
46+ = note: target type: `i32`
47+ the type has 32 bits
3648
3749error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
3850 --> $DIR/transmute-type-parameters.rs:35:18
3951 |
4052LL | let _: i32 = transmute(x);
4153 | ^^^^^^^^^
4254 |
43- = note: source type: `Worse<T>` (size can vary because of T)
44- = note: target type: `i32` (32 bits)
55+ = note: source type: `Worse<T>`
56+ the type `T` is too generic to determine its layout
57+ the size of this type is unknown at compile-time
58+ = note: target type: `i32`
59+ the type has 32 bits
4560
4661error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
4762 --> $DIR/transmute-type-parameters.rs:40:18
4863 |
4964LL | let _: i32 = transmute(x);
5065 | ^^^^^^^^^
5166 |
52- = note: source type: `Option<T>` (size can vary because of T)
53- = note: target type: `i32` (32 bits)
67+ = note: source type: `Option<T>`
68+ the type `T` is too generic to determine its layout
69+ the size of this type is unknown at compile-time
70+ = note: target type: `i32`
71+ the type has 32 bits
5472
5573error: aborting due to 6 previous errors
5674
0 commit comments