1
1
error: expected `{`, found keyword `false`
2
- --> $DIR/else-no-if.rs:3 :12
2
+ --> $DIR/else-no-if.rs:7 :12
3
3
|
4
4
LL | } else false {
5
5
| ---- ^^^^^
@@ -12,7 +12,7 @@ LL | } else if false {
12
12
| ++
13
13
14
14
error: expected `{`, found `falsy`
15
- --> $DIR/else-no-if.rs:10 :12
15
+ --> $DIR/else-no-if.rs:14 :12
16
16
|
17
17
LL | } else falsy() {
18
18
| ---- ^^^^^
@@ -25,7 +25,7 @@ LL | } else if falsy() {
25
25
| ++
26
26
27
27
error: expected `{`, found `falsy`
28
- --> $DIR/else-no-if.rs:17 :12
28
+ --> $DIR/else-no-if.rs:21 :12
29
29
|
30
30
LL | } else falsy();
31
31
| ^^^^^ expected `{`
@@ -36,7 +36,7 @@ LL | } else { falsy() };
36
36
| + +
37
37
38
38
error: expected `{`, found keyword `loop`
39
- --> $DIR/else-no-if.rs:23 :12
39
+ --> $DIR/else-no-if.rs:27 :12
40
40
|
41
41
LL | } else loop{}
42
42
| ^^^^ expected `{`
@@ -46,5 +46,53 @@ help: try placing this code inside a block
46
46
LL | } else { loop{} }
47
47
| + +
48
48
49
- error: aborting due to 4 previous errors
49
+ error: expected `{`, found `falsy`
50
+ --> $DIR/else-no-if.rs:34:12
51
+ |
52
+ LL | } else falsy!() {
53
+ | ---- ^^^^^
54
+ | |
55
+ | expected an `if` or a block after this `else`
56
+ |
57
+ help: add an `if` if this is the condition of a chained `else if` statement
58
+ |
59
+ LL | } else if falsy!() {
60
+ | ++
61
+
62
+ error: expected `{`, found `falsy`
63
+ --> $DIR/else-no-if.rs:41:12
64
+ |
65
+ LL | } else falsy!();
66
+ | ^^^^^ expected `{`
67
+ |
68
+ help: try placing this code inside a block
69
+ |
70
+ LL | } else { falsy!() };
71
+ | + +
72
+
73
+ error: expected `{`, found `falsy`
74
+ --> $DIR/else-no-if.rs:47:12
75
+ |
76
+ LL | } else falsy! {} {
77
+ | ---- ^^^^^
78
+ | |
79
+ | expected an `if` or a block after this `else`
80
+ |
81
+ help: add an `if` if this is the condition of a chained `else if` statement
82
+ |
83
+ LL | } else if falsy! {} {
84
+ | ++
85
+
86
+ error: expected `{`, found `falsy`
87
+ --> $DIR/else-no-if.rs:54:12
88
+ |
89
+ LL | } else falsy! {};
90
+ | ^^^^^ expected `{`
91
+ |
92
+ help: try placing this code inside a block
93
+ |
94
+ LL | } else { falsy! {} };
95
+ | + +
96
+
97
+ error: aborting due to 8 previous errors
50
98
0 commit comments