]>
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 | |
50 | ||
51 | error: labeled expression must be followed by `:` | |
52 | --> $DIR/labeled-no-colon-expr.rs:8:9 | |
53 | | | |
54 | LL | 'l4 0; | |
55 | | ----^ | |
56 | | | | | |
57 | | | help: add `:` after the label | |
58 | | the label | |
59 | | | |
60 | = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them | |
61 | ||
62 | error: cannot use a `block` macro fragment here | |
63 | --> $DIR/labeled-no-colon-expr.rs:13:17 | |
64 | | | |
65 | LL | 'l5 $b; | |
66 | | ----^^ | |
67 | | | | |
68 | | the `block` fragment is within this context | |
69 | ... | |
70 | LL | m!({}); | |
71 | | ------- in this macro invocation | |
72 | | | |
17df50a5 | 73 | = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) |
ba9703b0 XL |
74 | |
75 | error: labeled expression must be followed by `:` | |
76 | --> $DIR/labeled-no-colon-expr.rs:16:8 | |
77 | | | |
78 | LL | 'l5 $b; | |
79 | | ---- help: add `:` after the label | |
80 | | | | |
81 | | the label | |
82 | ... | |
83 | LL | m!({}); | |
84 | | ^^ | |
85 | | | |
86 | = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them | |
87 | ||
88 | error: aborting due to 8 previous errors | |
89 |