summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-98982.rs
blob: f875d20fa4c531eca0cc42cef56e5c0de2b84c83 (plain)
1
2
3
4
5
6
7
fn foo() -> i32 { //~ HELP otherwise consider changing the return type to account for that possibility
    for i in 0..0 { //~ ERROR mismatched types [E0308]
        return i;
    } //~ HELP return a value for the case when the loop has zero elements to iterate on
}

fn main() {}