Missing &
in "use the fully qualified path for the potential candidates" suggestion
#96291
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=nightly&mode=debug&edition=2021&gist=d14f1277f1ad02ee89b35d73b15d2ad6
The current output is:
Neither of the suggestions compiles because, unlike
.
, the suggested syntax does not perform autoref.The correct output would observe that
thing.method()
is undergoing autoref and instead suggest:The text was updated successfully, but these errors were encountered: