1 2 3 4 5 6 7 8
fn bar(int_param: usize) {} fn main() { let foo: [u8; 4] = [1; 4]; bar(foo); //~^ ERROR mismatched types //~| expected `usize`, found `[u8; 4]` }