]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/labeled-no-colon-expr.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / parser / labeled-no-colon-expr.stderr
CommitLineData
ba9703b0
XL
1error: labeled expression must be followed by `:`
2 --> $DIR/labeled-no-colon-expr.rs:4:5
3 |
4LL | '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
12error: labeled expression must be followed by `:`
13 --> $DIR/labeled-no-colon-expr.rs:5:5
14 |
15LL | '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
23error: labeled expression must be followed by `:`
24 --> $DIR/labeled-no-colon-expr.rs:6:5
25 |
26LL | '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
34error: labeled expression must be followed by `:`
35 --> $DIR/labeled-no-colon-expr.rs:7:5
36 |
37LL | '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
45error: expected `while`, `for`, `loop` or `{` after a label
46 --> $DIR/labeled-no-colon-expr.rs:8:9
47 |
48LL | 'l4 0;
49 | ^ expected `while`, `for`, `loop` or `{` after a label
923072b8
FG
50 |
51help: consider removing the label
52 |
53LL - 'l4 0;
54LL + 0;
55 |
ba9703b0
XL
56
57error: labeled expression must be followed by `:`
58 --> $DIR/labeled-no-colon-expr.rs:8:9
59 |
60LL | '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
68error: cannot use a `block` macro fragment here
69 --> $DIR/labeled-no-colon-expr.rs:13:17
70 |
71LL | 'l5 $b;
72 | ----^^
73 | |
74 | the `block` fragment is within this context
75...
76LL | 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
81error: labeled expression must be followed by `:`
82 --> $DIR/labeled-no-colon-expr.rs:16:8
83 |
84LL | 'l5 $b;
85 | ---- help: add `:` after the label
86 | |
87 | the label
88...
89LL | m!({});
90 | ^^
91 |
92 = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them
93
94error: aborting due to 8 previous errors
95