Skip to content

Commit 8c5f690

Browse files
committed
add test case
1 parent cc481a4 commit 8c5f690

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/test/ui/issues/issue-61858.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
(if foobar) //~ ERROR expected `{`, found `)`
3+
}

src/test/ui/issues/issue-61858.stderr

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error: expected `{`, found `)`
2+
--> $DIR/issue-61858.rs:2:15
3+
|
4+
LL | (if foobar)
5+
| -- ^ expected `{`
6+
| |
7+
| this `if` statement has a condition, but no block
8+
9+
error: aborting due to previous error
10+

0 commit comments

Comments
 (0)