E0046 suggests unsupported equality constraint bounds #91007
Labels
A-associated-items
Area: Associated items (types, constants & functions)
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:
Following the suggestion given:
two additional errors are raised:
These errors are fixable like so:
This issue is present on both stable and nightly:
I would expect
rustc
to give a working suggestion here, and definitely not to give a suggestion that is invalid in two distinct ways.The second issue is also reported by #89220.
The text was updated successfully, but these errors were encountered: