File: transmute-size-decrease.stderr

package info (click to toggle)
rust-zerocopy 0.8.26-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,144 kB
  • sloc: sh: 116; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
  --> tests/ui-stable/transmute-size-decrease.rs:20:27
   |
20 | const DECREASE_SIZE: u8 = transmute!(AU16(0));
   |                           ^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: `AU16` (16 bits)
   = note: target type: `u8` (8 bits)
   = note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)