fork/rust

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

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

master
734 B26 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: outer attributes are not allowed on `if` and `else` branches
8  --> $DIR/else-attrs.rs:11:12
9   |
10LL |       } else #[attr] if false {
11   |  _______----_^^^^^^^_-
12   | |       |    |
13   | |       |    help: remove the attributes
14   | |       the branch belongs to this `else`
15LL | |     } else {
16LL | |     }
17   | |_____- the attributes are attached to this branch
18
19error: expected expression, found keyword `else`
20  --> $DIR/else-attrs.rs:20:15
21   |
22LL |     } #[attr] else {
23   |               ^^^^ expected expression
24
25error: aborting due to 3 previous errors
26