summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type/type-error-break-tail.rs
blob: d4e3e93d06bc70fa6f5fa1d85afdaef8e3f52874 (plain)
1
2
3
4
5
6
7
8
fn loop_ending() -> i32 {
    loop {
        if false { break; } //~ ERROR mismatched types
        return 42;
    }
}

fn main() {}