aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/func5.rs
blob: 6f418a22192613a00f5a05a18bacb57ef16e9484 (plain)
1
2
3
4
5
6
7
fn func() -> i32 {
    return; // { dg-error "mismatched types, expected .i32. but got ...." }
}

fn main() {
    func();
}