On mismatched delimiters, only point at empty blocks that are in the same line
This commit is contained in:
parent
360e42de82
commit
81f435dd37
2 changed files with 8 additions and 9 deletions
|
|
@ -1,14 +1,8 @@
|
|||
error: unexpected closing delimiter: `}`
|
||||
--> $DIR/mismatched-delim-brace-empty-block.rs:5:1
|
||||
|
|
||||
LL | fn main() {
|
||||
| ___________-
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- this block is empty, you might have not meant to close it
|
||||
LL | let _ = ();
|
||||
LL | }
|
||||
| ^ unexpected closing delimiter
|
||||
LL | }
|
||||
| ^ unexpected closing delimiter
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue