fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
757 B24 linesraw
1error[E0268]: `break` outside of a loop or labeled block
2  --> $DIR/issue-43162.rs:3:5
3   |
4LL |     break true;
5   |     ^^^^^^^^^^ cannot `break` outside of a loop or labeled block
6
7error[E0268]: `break` outside of a loop or labeled block
8  --> $DIR/issue-43162.rs:7:5
9   |
10LL |     break {};
11   |     ^^^^^^^^ cannot `break` outside of a loop or labeled block
12
13error[E0308]: mismatched types
14  --> $DIR/issue-43162.rs:1:13
15   |
16LL | fn foo() -> bool {
17   |    ---      ^^^^ expected `bool`, found `()`
18   |    |
19   |    implicitly returns `()` as its body has no tail or `return` expression
20
21error: aborting due to 3 previous errors
22
23Some errors have detailed explanations: E0268, E0308.
24For more information about an error, try `rustc --explain E0268`.