]> git.lizzy.rs Git - rust.git/blob - src/test/ui/label/label_break_value_illegal_uses.stderr
0b9754c3c70e35e294199380cfbaee0e7b13873d
[rust.git] / src / test / ui / label / label_break_value_illegal_uses.stderr
1 error: expected one of `extern`, `fn`, or `{`, found `'b`
2   --> $DIR/label_break_value_illegal_uses.rs:6:12
3    |
4 LL |     unsafe 'b: {}
5    |            ^^ expected one of `extern`, `fn`, or `{` here
6
7 error: expected `{`, found `'b`
8   --> $DIR/label_break_value_illegal_uses.rs:10:13
9    |
10 LL |     if true 'b: {}
11    |     --      ^^----
12    |     |       |
13    |     |       expected `{`
14    |     |       help: try placing this code inside a block: `{ 'b: { } }`
15    |     this `if` statement has a condition, but no block
16
17 error: expected `{`, found `'b`
18   --> $DIR/label_break_value_illegal_uses.rs:14:21
19    |
20 LL |     if true {} else 'b: {}
21    |                     ^^----
22    |                     |
23    |                     expected `{`
24    |                     help: try placing this code inside a block: `{ 'b: { } }`
25
26 error: expected one of `.`, `?`, `{`, or an operator, found `'b`
27   --> $DIR/label_break_value_illegal_uses.rs:18:17
28    |
29 LL |     match false 'b: {}
30    |     -----       ^^ expected one of `.`, `?`, `{`, or an operator here
31    |     |
32    |     while parsing this match expression
33
34 error: aborting due to 4 previous errors
35