02-not-u8.stderr 629 B

1234567891011121314151617
  1. error[E0308]: mismatched types
  2. --> tests/fail/02-not-u8.rs:9:47
  3. |
  4. 9 | let result: [u8; 4] = concat_fixed_bytes!(d); // d is a u16 array
  5. | ^ expected `[u8; _]`, found `[u16; 2]`
  6. |
  7. = note: expected array `[u8; _]`
  8. found array `[u16; 2]`
  9. error[E0308]: mismatched types
  10. --> tests/fail/02-not-u8.rs:10:50
  11. |
  12. 10 | let result: [u8; 8] = concat_fixed_bytes!(a, d); // d is a u16 array
  13. | ^ expected `[u8; _]`, found `[u16; 2]`
  14. |
  15. = note: expected array `[u8; _]`
  16. found array `[u16; 2]`