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