01-incorrect-length.stderr 1.0 KB

12345678910111213141516171819
  1. error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
  2. --> tests/fail/01-incorrect-length.rs:9:27
  3. |
  4. 9 | let result: [u8; 8] = concat_fixed_bytes!(a, b); // yields 7 bytes, not 8
  5. | ^^^^^^^^^^^^^^^^^^^^^^^^^
  6. |
  7. = note: source type: `main::ConcatenatedArrays<4, 3>` (56 bits)
  8. = note: target type: `[u8; 8]` (64 bits)
  9. = note: this error originates in the macro `concat_fixed_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
  10. error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
  11. --> tests/fail/01-incorrect-length.rs:10:27
  12. |
  13. 10 | let result: [u8; 8] = concat_fixed_bytes!(a, b, c); // yields 10 bytes, not 8
  14. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  15. |
  16. = note: source type: `main::ConcatenatedArrays<4, 3, 3>` (80 bits)
  17. = note: target type: `[u8; 8]` (64 bits)
  18. = note: this error originates in the macro `concat_fixed_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)