| 1 |
error[E0080]: transmuting from 4-byte type to 8-byte type: `[u8; 4]` -> `u64` |
| 2 |
--> tests/ui-nightly/include_value_wrong_size.rs:15:25 |
| 3 |
| |
| 4 |
15 | const WRONG_SIZE: u64 = include_value!("../../testdata/include_value/data"); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `WRONG_SIZE` failed here |
| 6 |
| |
| 7 |
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `include_value` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 8 |
|
| 9 |
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types |
| 10 |
--> tests/ui-nightly/include_value_wrong_size.rs:15:25 |
| 11 |
| |
| 12 |
15 | const WRONG_SIZE: u64 = include_value!("../../testdata/include_value/data"); |
| 13 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 14 |
| |
| 15 |
= note: source type: `[u8; 4]` (32 bits) |
| 16 |
= note: target type: `u64` (64 bits) |
| 17 |
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `include_value` (in Nightly builds, run with -Z macro-backtrace for more info) |