"type annotations needed" when duplicated where-clauses use different lifetime parameters #77052
Labels
A-inference
Area: Type inference
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code should compile, but it seems to confuse the compiler and results in a very poor error message:
There should not be any type inference happening in the where-clause, so getting this error is fairly absurd.
Same thing happens with other traits than
Copy
, and also with concrete types like()
instead of a type parameterT
.The text was updated successfully, but these errors were encountered: