|
| 1 | +error: expected one of `extern`, `fn`, or `{`, found `'b` |
| 2 | + --> $DIR/label_break_value_illegal_uses.rs:14:12 |
| 3 | + | |
| 4 | +LL | unsafe 'b: {} //~ ERROR expected one of `extern`, `fn`, or `{` |
| 5 | + | ^^ expected one of `extern`, `fn`, or `{` here |
| 6 | + |
| 7 | +error: expected `{`, found `'b` |
| 8 | + --> $DIR/label_break_value_illegal_uses.rs:18:13 |
| 9 | + | |
| 10 | +LL | if true 'b: {} //~ ERROR expected `{`, found `'b` |
| 11 | + | -- ^^---- |
| 12 | + | | | |
| 13 | + | | help: try placing this code inside a block: `{ 'b: { } }` |
| 14 | + | this `if` statement has a condition, but no block |
| 15 | + |
| 16 | +error: expected `{`, found `'b` |
| 17 | + --> $DIR/label_break_value_illegal_uses.rs:22:21 |
| 18 | + | |
| 19 | +LL | if true {} else 'b: {} //~ ERROR expected `{`, found `'b` |
| 20 | + | ^^---- |
| 21 | + | | |
| 22 | + | help: try placing this code inside a block: `{ 'b: { } }` |
| 23 | + |
| 24 | +error: expected one of `.`, `?`, `{`, or an operator, found `'b` |
| 25 | + --> $DIR/label_break_value_illegal_uses.rs:26:17 |
| 26 | + | |
| 27 | +LL | match false 'b: {} //~ ERROR expected one of `.`, `?`, `{`, or an operator |
| 28 | + | ^^ expected one of `.`, `?`, `{`, or an operator here |
| 29 | + |
| 30 | +error: aborting due to 4 previous errors |
| 31 | + |
0 commit comments