@@ -4,53 +4,71 @@ error[E0512]: cannot transmute between types of different sizes, or dependently-
4
4
LL | let _: i32 = transmute(x);
5
5
| ^^^^^^^^^
6
6
|
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
9
12
10
13
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
11
14
--> $DIR/transmute-type-parameters.rs:11:18
12
15
|
13
16
LL | let _: i32 = transmute(x);
14
17
| ^^^^^^^^^
15
18
|
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
18
24
19
25
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
20
26
--> $DIR/transmute-type-parameters.rs:16:18
21
27
|
22
28
LL | let _: i32 = transmute(x);
23
29
| ^^^^^^^^^
24
30
|
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
27
36
28
37
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
29
38
--> $DIR/transmute-type-parameters.rs:25:18
30
39
|
31
40
LL | let _: i32 = transmute(x);
32
41
| ^^^^^^^^^
33
42
|
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
36
48
37
49
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
38
50
--> $DIR/transmute-type-parameters.rs:35:18
39
51
|
40
52
LL | let _: i32 = transmute(x);
41
53
| ^^^^^^^^^
42
54
|
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
45
60
46
61
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
47
62
--> $DIR/transmute-type-parameters.rs:40:18
48
63
|
49
64
LL | let _: i32 = transmute(x);
50
65
| ^^^^^^^^^
51
66
|
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
54
72
55
73
error: aborting due to 6 previous errors
56
74
0 commit comments