1 error: labeled expression must be followed by `:`
2 --> $DIR/label-after-block-like.rs:2:20
4 LL | if let () = () 'a {}
7 | | help: add `:` after the label
10 = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them
12 error: expected `{`, found `'a`
13 --> $DIR/label-after-block-like.rs:2:20
15 LL | if let () = () 'a {}
18 note: the `if` expression is missing a block after this condition
19 --> $DIR/label-after-block-like.rs:2:8
21 LL | if let () = () 'a {}
23 help: try placing this code inside a block
25 LL | if let () = () { 'a {} }
28 error: labeled expression must be followed by `:`
29 --> $DIR/label-after-block-like.rs:8:13
34 | | help: add `:` after the label
37 = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them
39 error: expected `{`, found `'a`
40 --> $DIR/label-after-block-like.rs:8:13
45 note: the `if` expression is missing a block after this condition
46 --> $DIR/label-after-block-like.rs:8:8
50 help: try placing this code inside a block
52 LL | if true { 'a {} }
55 error: labeled expression must be followed by `:`
56 --> $DIR/label-after-block-like.rs:14:10
61 | | help: add `:` after the label
64 = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them
66 error: expected `{`, found `'a`
67 --> $DIR/label-after-block-like.rs:14:10
70 | ---- ^^ expected `{`
72 | while parsing this `loop` expression
74 help: try placing this code inside a block
79 error: labeled expression must be followed by `:`
80 --> $DIR/label-after-block-like.rs:20:16
85 | | help: add `:` after the label
88 = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them
90 error: expected `{`, found `'a`
91 --> $DIR/label-after-block-like.rs:20:16
94 | ----- ---- ^^ expected `{`
96 | | this `while` condition successfully parsed
97 | while parsing the body of this `while` expression
99 help: try placing this code inside a block
101 LL | while true { 'a {} }
104 error: labeled expression must be followed by `:`
105 --> $DIR/label-after-block-like.rs:26:23
107 LL | while let () = () 'a {}
110 | | help: add `:` after the label
113 = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them
115 error: expected `{`, found `'a`
116 --> $DIR/label-after-block-like.rs:26:23
118 LL | while let () = () 'a {}
119 | ----- ----------- ^^ expected `{`
121 | | this `while` condition successfully parsed
122 | while parsing the body of this `while` expression
124 help: try placing this code inside a block
126 LL | while let () = () { 'a {} }
129 error: labeled expression must be followed by `:`
130 --> $DIR/label-after-block-like.rs:32:19
132 LL | for _ in 0..0 'a {}
135 | | help: add `:` after the label
138 = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them
140 error: expected `{`, found `'a`
141 --> $DIR/label-after-block-like.rs:32:19
143 LL | for _ in 0..0 'a {}
146 help: try placing this code inside a block
148 LL | for _ in 0..0 { 'a {} }
151 error: labeled expression must be followed by `:`
152 --> $DIR/label-after-block-like.rs:38:12
157 | | help: add `:` after the label
160 = note: labels are used before loops and blocks, allowing e.g., `break 'label` to them
162 error: expected `{`, found `'a`
163 --> $DIR/label-after-block-like.rs:38:12
166 | ------ ^^ expected `{`
168 | while parsing this `unsafe` expression
170 help: try placing this code inside a block
172 LL | unsafe { 'a {} }
175 error: aborting due to 14 previous errors