File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1199,7 +1199,7 @@ impl<'a> Parser<'a> {
1199
1199
if self . eat_keyword ( kw:: Else ) || !cond. returns ( ) {
1200
1200
let sp = self . sess . source_map ( ) . next_point ( lo) ;
1201
1201
let mut err = self . diagnostic ( )
1202
- . struct_span_err ( sp, "missing condition for `if` statement " ) ;
1202
+ . struct_span_err ( sp, "missing condition for `if` expression " ) ;
1203
1203
err. span_label ( sp, "expected if condition here" ) ;
1204
1204
return Err ( err)
1205
1205
}
Original file line number Diff line number Diff line change 1
- error: missing condition for `if` statement
1
+ error: missing condition for `if` expression
2
2
--> $DIR/issue-13483.rs:3:14
3
3
|
4
4
LL | } else if {
5
5
| ^ expected if condition here
6
6
7
- error: missing condition for `if` statement
7
+ error: missing condition for `if` expression
8
8
--> $DIR/issue-13483.rs:10:14
9
9
|
10
10
LL | } else if {
You can’t perform that action at this time.
0 commit comments