1 error[E0308]: mismatched types
4 LL | test(array.len());
5 | ---- ^^^^^^^^^^^ expected `u32`, found `usize`
7 | arguments to this function are incorrect
9 note: function defined here
12 LL | fn test(length: u32) {
14 help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
16 LL | test(array.len().try_into().unwrap());
17 | ++++++++++++++++++++
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0308`.