summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-4517.rs
blob: 469304e2cf70fd87173c33fb930122e0b9dfba1c (plain)
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]`
}