Imperfect diagnostic when attempting to print PathBuf #94210
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=175c4f812be74f3fdab4a225687bfb23
The current output is:
Ideally the output should look like:
The change in output is only to make sure the tip to use
.display()
or.to_string_lossy()
shows up when attempting to print aPathBuf
. It currently only shows up when attempting to print aPath
. The tips shows up as anote
in addition to showing up in the – uhh... – error message that points at the problem.The text was updated successfully, but these errors were encountered: