]> git.proxmox.com Git - rustc.git/blob - src/test/ui/if-attrs/else-attrs.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / if-attrs / else-attrs.stderr
1 error: expected expression, found keyword `else`
2 --> $DIR/else-attrs.rs:4:15
3 |
4 LL | } #[attr] else if false {
5 | ^^^^ expected expression
6
7 error: outer attributes are not allowed on `if` and `else` branches
8 --> $DIR/else-attrs.rs:11:12
9 |
10 LL | } else #[attr] if false {
11 | _______----_^^^^^^^_-
12 | | | |
13 | | | help: remove the attributes
14 | | the branch belongs to this `else`
15 LL | | } else {
16 LL | | }
17 | |_____- the attributes are attached to this branch
18
19 error: expected expression, found keyword `else`
20 --> $DIR/else-attrs.rs:20:15
21 |
22 LL | } #[attr] else {
23 | ^^^^ expected expression
24
25 error: aborting due to 3 previous errors
26