mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-27 07:03:45 +00:00
add test case
This commit is contained in:
parent
cc481a46cb
commit
8c5f6907a1
3
src/test/ui/issues/issue-61858.rs
Normal file
3
src/test/ui/issues/issue-61858.rs
Normal file
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
(if foobar) //~ ERROR expected `{`, found `)`
|
||||
}
|
10
src/test/ui/issues/issue-61858.stderr
Normal file
10
src/test/ui/issues/issue-61858.stderr
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user