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

fn main() {
    let a = test(1, true);
    // { dg-error "mismatched types, expected .i32. but got .bool." "" { target *-*-* } .-1 }
}