diff options
Diffstat (limited to 'tests/ui/parser/issues/issue-13483.rs')
-rw-r--r-- | tests/ui/parser/issues/issue-13483.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-13483.rs b/tests/ui/parser/issues/issue-13483.rs new file mode 100644 index 000000000..4e32fcab3 --- /dev/null +++ b/tests/ui/parser/issues/issue-13483.rs @@ -0,0 +1,17 @@ +fn main() { + if true { + } else if { + //~^ ERROR missing condition for `if` expression + } else { + } +} + +fn foo() { + if true { + } else if { + //~^ ERROR missing condition for `if` expression + } + bar(); +} + +fn bar() {} |