aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/func1.rs
blob: 6758a3898e308308d6c41306d8fa89952f8aed6a (plain)
1
2
3
4
5
6
7
8
9
fn test(x: i32) -> bool {
    return x + 1; // { dg-error "expected .bool. got .i32." }
}

fn main() {
    let an_integer = 5;

    let call_test = test(1);
}