Hard to read assert_eq!() custom message output #94005
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
The custom message in assert_eq!(...) macro is shown right after the
right:
. This is hard to read because the value strings could be very long. I think it is better to print the custom message (if available) on a separate line.The above code (playground) prints this:
Suggested output
Note that custom message and the location in source are still on the same line
The text was updated successfully, but these errors were encountered: