about summary refs log tree commit diff
path: root/tests/ui/typeck/issue-98982.rs
blob: 3eff9fbe360b7f4fa121dc37f571966862723f5c (plain)
1
2
3
4
5
6
7
fn foo() -> i32 {
    for i in 0..0 { //~ ERROR mismatched types [E0308]
        return i;
    } //~ HELP consider returning a value here
}

fn main() {}