aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/func2.rs
blob: 0b8d999fec172310a7b14eb6634b43d9348e419d (plain)
1
2
3
4
5
6
7
fn test(a: i32, b: i32) -> i32 {
    a + b
}

fn main() {
    let a = test(1); // { dg-error "unexpected number of arguments 1 expected 2" }
}