On mismatched delimiters, only point at empty blocks that are in the same line

This commit is contained in:
Esteban Küber 2020-03-03 15:07:33 -08:00
parent 360e42de82
commit 81f435dd37
2 changed files with 8 additions and 9 deletions

View file

@ -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