11error[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
213 |
224LL | unsafe { std::mem::transmute(x) }
235 | ^^^^^^^^^^^^^^^^^^^
@@ -26,14 +8,14 @@ LL | unsafe { std::mem::transmute(x) }
268 = note: target type: `u32` (32 bits)
279
2810error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
29- --> $DIR/transmute.rs:30 :14
11+ --> $DIR/transmute.rs:28 :14
3012 |
3113LL | unsafe { std::mem::transmute(x) }
3214 | ^^^^^^^^^^^^^^^^^^^
3315 |
3416 = note: source type: `Option<(u32) is S..=E>` (size can vary because of u32)
3517 = note: target type: `Option<u32>` (64 bits)
3618
37- error: aborting due to 4 previous errors
19+ error: aborting due to 2 previous errors
3820
3921For more information about this error, try `rustc --explain E0512`.
0 commit comments