Invalid code suggestion for ambigous trait generic argument #94197
Labels
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
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.
I tried this code:
playground
I expected to see this happen: Compiler error with either correct suggestion or no suggestion at all
Instead, this happened: Suggestion that does not compile:
What even is the correct way to disambiguate this situation?
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: