summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-4517.rs
blob: caf85d44aac5c424f0153f289b78c4e041c27318 (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 array `[u8; 4]`
}