fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
622 B27 linesraw
1error: expected expression, found keyword `else`
2  --> $DIR/else-attrs.rs:4:15
3   |
4LL |     } #[attr] else if false {
5   |               ^^^^ expected expression
6
7error: expected `{`, found `#`
8  --> $DIR/else-attrs.rs:11:12
9   |
10LL |     } else #[attr] if false {
11   |            ^ expected `{`
12   |
13help: try placing this code inside a block
14   |
15LL |     } else #[attr] { if false {
16LL |     } else {
17LL |     } }
18   |
19
20error: expected expression, found keyword `else`
21  --> $DIR/else-attrs.rs:20:15
22   |
23LL |     } #[attr] else {
24   |               ^^^^ expected expression
25
26error: aborting due to 3 previous errors
27