]> git.proxmox.com Git - rustc.git/blob - src/test/ui/typeck/issue-98982.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / 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() {}