add test case

This commit is contained in:
Esteban Küber 2019-07-12 11:13:03 -07:00
parent cc481a46cb
commit 8c5f6907a1
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,3 @@
fn main() {
(if foobar) //~ ERROR expected `{`, found `)`
}

View File

@ -0,0 +1,10 @@
error: expected `{`, found `)`
--> $DIR/issue-61858.rs:2:15
|
LL | (if foobar)
| -- ^ expected `{`
| |
| this `if` statement has a condition, but no block
error: aborting due to previous error