"use a fully qualified path" picks a random self type #112897
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.
Uh oh!
There was an error while loading. Please reload this page.
Code
Current output
Desired output
Rationale and extra context
if there are 273 possible self types to specify diagnostics should probably not arbitrarily decide what self type i meant since it actually has no idea.
Other cases
No response
Anything else?
Ideally it'd probably actually suggest
i32::default()
but it might be unreasonable to expect diagnostics to figure that outThe text was updated successfully, but these errors were encountered: