1 error[E0308]: mismatched types
2 --> $DIR/break-while-condition.rs:9:20
5 | ____________________^
6 LL | | 'a: while break 'a {};
8 | |_________^ expected `!`, found `()`
10 = note: expected type `!`
13 error[E0308]: mismatched types
14 --> $DIR/break-while-condition.rs:16:13
19 | |_____________^ expected `!`, found `()`
21 = note: expected type `!`
24 error[E0308]: mismatched types
25 --> $DIR/break-while-condition.rs:24:13
30 | |_____________^ expected `!`, found `()`
32 = note: expected type `!`
34 note: the function expects a value to always be returned, but loops might run zero times
35 --> $DIR/break-while-condition.rs:24:13
38 | ^^^^^^^^^^^ this might have zero elements to iterate on
40 | ------ if the loop doesn't execute, this value would never get returned
41 = 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
43 error: aborting due to 3 previous errors
45 For more information about this error, try `rustc --explain E0308`.