]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-98982.rs
Rollup merge of #106889 - scottmcm:windows-mut, r=cuviper
[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() {}