Reference to std::fmt::Debug
not using full path in "multiple applicable items in scope" error
#100683
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
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=970c9bebd80f042e27af0cdfb3309579
The current output is:
Ideally the output should look like:
If you apply the original suggestion, you get a compile error, because
Debug
(the trait) is not in scope.Debug
(the derive macro) is, however. I suspect that's what's causing this? And why it doesn't happen for Display, because Display doesn't have a derive macro.@rustbot label D-invalid-suggestion
The text was updated successfully, but these errors were encountered: