]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-98982.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / typeck / issue-98982.rs
1 fn foo() -> i32 {
2     for i in 0..0 {
3     //~^ ERROR: mismatched types [E0308]
4         return i;
5     }
6     //~| help: return a value for the case when the loop has zero elements to iterate on, or consider changing the return type to account for that possibility
7 }
8
9 fn main() {}