Description
When two diagnostic spans are of the same width/location (effectively the same) and only one of them has a label, the output is the same as for a single one. There's a corner case where having a zero-width span (which get's rendered as a 1-char-wide span) fall in the same place as a 1-char-wide span without a label, resulting in the following output:
{foo(bar {}}
- ^
| |
| help: `)` may belong here
|
unclosed delimiter
This should instead be
{foo(bar {}}
- ^ help: `)` may belong here
|
unclosed delimiter