]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-error-break-tail.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / type / type-error-break-tail.rs
1 fn loop_ending() -> i32 {
2     loop {
3         if false { break; } //~ ERROR mismatched types
4         return 42;
5     }
6 }
7
8 fn main() {}