]>
Commit | Line | Data |
---|---|---|
ba9703b0 XL |
1 | error: labeled expression must be followed by `:` |
2 | --> $DIR/labeled-no-colon-expr.rs:4:5 | |
3 | | | |
4 | LL | 'l0 while false {} | |
5 | | ----^^^^^^^^^^^^^^ | |
6 | | | | | |
7 | | | help: add `:` after the label | |
8 | | the label | |
9 | | | |
10 | = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them | |
11 | ||
12 | error: labeled expression must be followed by `:` | |
13 | --> $DIR/labeled-no-colon-expr.rs:5:5 | |
14 | | | |
15 | LL | 'l1 for _ in 0..1 {} | |
16 | | ----^^^^^^^^^^^^^^^^ | |
17 | | | | | |
18 | | | help: add `:` after the label | |
19 | | the label | |
20 | | | |
21 | = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them | |
22 | ||
23 | error: labeled expression must be followed by `:` | |
24 | --> $DIR/labeled-no-colon-expr.rs:6:5 | |
25 | | | |
26 | LL | 'l2 loop {} | |
27 | | ----^^^^^^^ | |
28 | | | | | |
29 | | | help: add `:` after the label | |
30 | | the label | |
31 | | | |
32 | = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them | |
33 | ||
34 | error: labeled expression must be followed by `:` | |
35 | --> $DIR/labeled-no-colon-expr.rs:7:5 | |
36 | | | |
37 | LL | 'l3 {} | |
38 | | ----^^ | |
39 | | | | | |
40 | | | help: add `:` after the label | |
41 | | the label | |
42 | | | |
43 | = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them | |
44 | ||
45 | error: expected `while`, `for`, `loop` or `{` after a label | |
46 | --> $DIR/labeled-no-colon-expr.rs:8:9 | |
47 | | | |
48 | LL | 'l4 0; | |
49 | | ^ expected `while`, `for`, `loop` or `{` after a label | |
923072b8 FG |
50 | | |
51 | help: consider removing the label | |
52 | | | |
53 | LL - 'l4 0; | |
54 | LL + 0; | |
55 | | | |
ba9703b0 XL |
56 | |
57 | error: labeled expression must be followed by `:` | |
58 | --> $DIR/labeled-no-colon-expr.rs:8:9 | |
59 | | | |
60 | LL | 'l4 0; | |
61 | | ----^ | |
62 | | | | | |
63 | | | help: add `:` after the label | |
64 | | the label | |
65 | | | |
66 | = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them | |
67 | ||
68 | error: cannot use a `block` macro fragment here | |
69 | --> $DIR/labeled-no-colon-expr.rs:13:17 | |
70 | | | |
71 | LL | 'l5 $b; | |
72 | | ----^^ | |
73 | | | | |
74 | | the `block` fragment is within this context | |
75 | ... | |
76 | LL | m!({}); | |
c295e0f8 | 77 | | ------ in this macro invocation |
ba9703b0 | 78 | | |
17df50a5 | 79 | = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) |
ba9703b0 XL |
80 | |
81 | error: labeled expression must be followed by `:` | |
82 | --> $DIR/labeled-no-colon-expr.rs:16:8 | |
83 | | | |
84 | LL | 'l5 $b; | |
85 | | ---- help: add `:` after the label | |
86 | | | | |
87 | | the label | |
88 | ... | |
89 | LL | m!({}); | |
90 | | ^^ | |
91 | | | |
92 | = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them | |
93 | ||
94 | error: aborting due to 8 previous errors | |
95 |