Inappropriate Self type name in "use the fully qualified path for the potential candidates" suggestion #96292
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=ef40cf437f8d092234c378e4c9b22d4e
The current output is:
Neither of the suggestions compiles, because
X
does not refer to anything inside the body of main.Instead, a correct suggestion would use any of the following 5 correct possibilities:
<Thing<bool> as Method<i32>>::method(thing);
<Thing<_> as Method<i32>>::method(thing);
<_ as Method<i32>>::method(thing);
<Method<i32>>::method(thing);
Method::<i32>::method(thing);
The text was updated successfully, but these errors were encountered: