Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Jul 12, 2019
1 parent cc481a4 commit 8c5f690
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/ui/issues/issue-61858.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
(if foobar) //~ ERROR expected `{`, found `)`
}
10 changes: 10 additions & 0 deletions src/test/ui/issues/issue-61858.stderr
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8c5f690

Please sign in to comment.