1 error[E0308]: mismatched types
2 --> $DIR/type-error-break-tail.rs:3:20
4 LL | fn loop_ending() -> i32 {
5 | --- expected `i32` because of return type
7 LL | if false { break; }
10 | expected `i32`, found `()`
11 | help: give it a value of the expected type: `break 42`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0308`.