File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1203,7 +1203,7 @@ impl<'a> Parser<'a> {
12031203 if self . eat_keyword ( kw:: Else ) || !cond. returns ( ) {
12041204 let sp = self . sess . source_map ( ) . next_point ( lo) ;
12051205 let mut err = self . diagnostic ( )
1206- . struct_span_err ( sp, "missing condition for `if` statemement " ) ;
1206+ . struct_span_err ( sp, "missing condition for `if` expression " ) ;
12071207 err. span_label ( sp, "expected if condition here" ) ;
12081208 return Err ( err)
12091209 }
Original file line number Diff line number Diff line change 1- error: missing condition for `if` statemement
1+ error: missing condition for `if` expression
22 --> $DIR/issue-13483.rs:3:14
33 |
44LL | } else if {
55 | ^ expected if condition here
66
7- error: missing condition for `if` statemement
7+ error: missing condition for `if` expression
88 --> $DIR/issue-13483.rs:10:14
99 |
1010LL | } else if {
You can’t perform that action at this time.
0 commit comments