| 1 |
error[E0080]: transmuting from 1-byte type to 2-byte type: `u8` -> `AU16` |
| 2 |
--> tests/ui-nightly/transmute-size-increase.rs:20:29 |
| 3 |
| |
| 4 |
20 | const INCREASE_SIZE: AU16 = transmute!(0u8); |
| 5 |
| ^^^^^^^^^^^^^^^ evaluation of `INCREASE_SIZE` failed here |
| 6 |
| |
| 7 |
= note: this error originates in the macro `transmute` (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/transmute-size-increase.rs:20:29 |
| 11 |
| |
| 12 |
20 | const INCREASE_SIZE: AU16 = transmute!(0u8); |
| 13 |
| ^^^^^^^^^^^^^^^ |
| 14 |
| |
| 15 |
= note: source type: `u8` (8 bits) |
| 16 |
= note: target type: `AU16` (16 bits) |
| 17 |
= note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info) |