summary refs log tree commit diff
path: root/src/test/ui/issues/issue-4517.rs
blob: bbe81f3fc7820ebf265f3b04c6279ffd8a947593 (plain)
1
2
3
4
5
6
7
8
9
10
fn bar(int_param: usize) {}

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