]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-43162.stderr
Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19
[rust.git] / src / test / ui / issues / issue-43162.stderr
1 error[E0268]: `break` outside of a loop
2   --> $DIR/issue-43162.rs:3:5
3    |
4 LL |     break true;
5    |     ^^^^^^^^^^ cannot `break` outside of a loop
6
7 error[E0268]: `break` outside of a loop
8   --> $DIR/issue-43162.rs:7:5
9    |
10 LL |     break {};
11    |     ^^^^^^^^ cannot `break` outside of a loop
12
13 error[E0308]: mismatched types
14   --> $DIR/issue-43162.rs:1:13
15    |
16 LL | fn foo() -> bool {
17    |    ---      ^^^^ expected `bool`, found `()`
18    |    |
19    |    implicitly returns `()` as its body has no tail or `return` expression
20
21 error: aborting due to 3 previous errors
22
23 Some errors have detailed explanations: E0268, E0308.
24 For more information about an error, try `rustc --explain E0268`.