fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.6 KiB99 linesraw
1error: labeled expression must be followed by `:`
2  --> $DIR/labeled-no-colon-expr.rs:2: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:3: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:4: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:5: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:6:9
47   |
48LL |     'l4 0;
49   |         ^ expected `while`, `for`, `loop` or `{` after a label
50   |
51help: consider removing the label
52   |
53LL -     'l4 0;
54LL +     0;
55   |
56
57error: labeled expression must be followed by `:`
58  --> $DIR/labeled-no-colon-expr.rs:6: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:11:17
70   |
71LL |             'l5 $b;
72   |             ----^^
73   |             |
74   |             the `block` fragment is within this context
75...
76LL |     m!({});
77   |     ------ in this macro invocation
78   |
79   = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
80help: wrap this in another block
81   |
82LL |             'l5 { $b };
83   |                 +    +
84
85error: labeled expression must be followed by `:`
86  --> $DIR/labeled-no-colon-expr.rs:14:8
87   |
88LL |             'l5 $b;
89   |             ---- help: add `:` after the label
90   |             |
91   |             the label
92...
93LL |     m!({});
94   |        ^^
95   |
96   = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them
97
98error: aborting due to 8 previous errors
99