missing lifetime specifier error ui coloration misaligned #108547
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The bug is in the help section of the "missing lifetime specifier" error (E0106).
When the method head is formatted over multiple lines, then green highlighting will be misaligned.
I tried this code:
I expected to see this happen:
For the function
short
it looks like this, which is fineInstead, this happened:
But for the function
long
the highlight is misalignedMeta
rustc --version --verbose
:also on stable:
Backtrace
The text was updated successfully, but these errors were encountered: