E0404 suggestion is correct but E0782 is applied first, preventig autofixing the code #106861
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:
The current output is:
If I only apply the E0404 suggestion, so
type Strings = Iterator<Item=String>;
=>trait Strings = Iterator<Item=String>;
, the code works, however, when runnig rustfix, it will apply the E0782 suggestion first which results intype Strings = dyn Iterator<Item=String>;
which does not fix the problem.So the code becomes
which will cause
but
is not the solution here:
The text was updated successfully, but these errors were encountered: