Verbose output for simple mistake of using method syntax for associated functions #102354
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: link
The current output is:
In the above current output there are many general help and note messages which may not be super relevant in the above context. On top of that, there are 2 suggested help messages (bottom 2), where the first one (
i32::func();
) is correct and the second one (<i32 as Trait>::func(x);
) is wrong with the extra parameter passed in. Hence, the ideal output should be much leaner and the only help message should the valid one. Thanks.@rustbot label +D-invalid-suggestion +D-verbose +D-confusing
The text was updated successfully, but these errors were encountered: