02-not-u8.stderr 625 B

1234567891011121314151617
  1. error[E0308]: mismatched types
  2. --> tests/fail/02-not-u8.rs:7:48
  3. |
  4. 7 | let _result: [u8; 4] = concat_fixed_bytes!(b); // b 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:8:51
  11. |
  12. 8 | let _result: [u8; 8] = concat_fixed_bytes!(a, b); // b is a u16 array
  13. | ^ expected `[u8; _]`, found `[u16; 2]`
  14. |
  15. = note: expected array `[u8; _]`
  16. found array `[u16; 2]`