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 @@ -1199,7 +1199,7 @@ impl<'a> Parser<'a> {
11991199 if self . eat_keyword ( kw:: Else ) || !cond. returns ( ) {
12001200 let sp = self . sess . source_map ( ) . next_point ( lo) ;
12011201 let mut err = self . diagnostic ( )
1202- . struct_span_err ( sp, "missing condition for `if` statemement " ) ;
1202+ . struct_span_err ( sp, "missing condition for `if` statement " ) ;
12031203 err. span_label ( sp, "expected if condition here" ) ;
12041204 return Err ( err)
12051205 }
Original file line number Diff line number Diff line change 1- error: missing condition for `if` statemement
1+ error: missing condition for `if` statement
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` statement
88 --> $DIR/issue-13483.rs:10:14
99 |
1010LL | } else if {
You can’t perform that action at this time.
0 commit comments