]> git.lizzy.rs Git - rust.git/blob - src/test/ui/break-while-condition.stderr
Fix behaviour of divergence in while loop conditions
[rust.git] / src / test / ui / break-while-condition.stderr
1 error[E0308]: mismatched types
2   --> $DIR/break-while-condition.rs:14:16
3    |
4 LL |       let _: ! = { //~ ERROR mismatched types
5    |  ________________^
6 LL | |         'a: while break 'a {};
7 LL | |     };
8    | |_____^ expected !, found ()
9    |
10    = note: expected type `!`
11               found type `()`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0308`.