File: try_transmute_ref-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-- 591 bytes parent folder | download | duplicates (14)
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/try_transmute_ref-size-decrease.rs:19:41
   |
19 |     let decrease_size: Result<&u8, _> = try_transmute_ref!(&AU16(0));
   |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: `AU16` (16 bits)
   = note: target type: `u8` (8 bits)
   = note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)