Trait resolution on associated type breaks with type inference for references #94358
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-lifetimes
Area: Lifetimes / regions
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
fixed-by-next-solver
Fixed by the next-generation trait solver, `-Znext-solver`.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code (playground):
I expected this to compile just fine.
Instead, the following error is produced:
Note that when an explicit type is specified in generic parameters, the code compiles just fine.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: