Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify that an
if
condition block returns a value
- Loading branch information
Showing
4 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
error: missing condition for `if` statemement | ||
--> $DIR/issue-13483.rs:13:14 | ||
| | ||
13 | } else if { //ERROR: MISSING CONDITIONAL | ||
13 | } else if { | ||
| ^ expected if condition here | ||
|
||
error: aborting due to previous error | ||
error: missing condition for `if` statemement | ||
--> $DIR/issue-13483.rs:20:14 | ||
| | ||
20 | } else if { | ||
| ^ expected if condition here | ||
|
||
error: aborting due to 2 previous errors | ||
|