1
1
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2
- --> $DIR/transmute.rs:8:14
3
- |
4
- LL | unsafe { std::mem::transmute(x) }
5
- | ^^^^^^^^^^^^^^^^^^^
6
- |
7
- = note: source type: `u32` (32 bits)
8
- = note: target type: `(u32) is S..=E` (size can vary because of u32)
9
-
10
- error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
11
- --> $DIR/transmute.rs:14:14
12
- |
13
- LL | unsafe { std::mem::transmute(x) }
14
- | ^^^^^^^^^^^^^^^^^^^
15
- |
16
- = note: source type: `(u32) is S..=E` (size can vary because of u32)
17
- = note: target type: `u32` (32 bits)
18
-
19
- error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
20
- --> $DIR/transmute.rs:22:14
2
+ --> $DIR/transmute.rs:20:14
21
3
|
22
4
LL | unsafe { std::mem::transmute(x) }
23
5
| ^^^^^^^^^^^^^^^^^^^
@@ -26,14 +8,14 @@ LL | unsafe { std::mem::transmute(x) }
26
8
= note: target type: `u32` (32 bits)
27
9
28
10
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
29
- --> $DIR/transmute.rs:30 :14
11
+ --> $DIR/transmute.rs:28 :14
30
12
|
31
13
LL | unsafe { std::mem::transmute(x) }
32
14
| ^^^^^^^^^^^^^^^^^^^
33
15
|
34
16
= note: source type: `Option<(u32) is S..=E>` (size can vary because of u32)
35
17
= note: target type: `Option<u32>` (64 bits)
36
18
37
- error: aborting due to 4 previous errors
19
+ error: aborting due to 2 previous errors
38
20
39
21
For more information about this error, try `rustc --explain E0512`.
0 commit comments