rust/tests/ui/issues/issue-4517.rs
2023-01-11 09:32:08 +00:00

9 lines
169 B
Rust

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