]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-error-break-tail.rs
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
[rust.git] / src / test / 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() {}