]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-43162.stderr
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-43162.stderr
CommitLineData
8faf50e0 1error[E0268]: `break` outside of loop
0731742a 2 --> $DIR/issue-43162.rs:3:5
8faf50e0
XL
3 |
4LL | break true; //~ ERROR E0268
5 | ^^^^^^^^^^ cannot break outside of a loop
6
7error[E0268]: `break` outside of loop
0731742a 8 --> $DIR/issue-43162.rs:7:5
8faf50e0
XL
9 |
10LL | break {}; //~ ERROR E0268
11 | ^^^^^^^^ cannot break outside of a loop
12
13error[E0308]: mismatched types
0731742a 14 --> $DIR/issue-43162.rs:1:13
8faf50e0 15 |
0731742a
XL
16LL | fn foo() -> bool {
17 | --- ^^^^ expected bool, found ()
18 | |
19 | this function's body doesn't return
20LL | //~^ ERROR E0308
21LL | break true; //~ ERROR E0268
22 | - help: consider removing this semicolon
8faf50e0
XL
23 |
24 = note: expected type `bool`
25 found type `()`
26
27error: aborting due to 3 previous errors
28
29Some errors occurred: E0268, E0308.
30For more information about an error, try `rustc --explain E0268`.