impl Fn(T)
argument type is not infered from return type
#138530
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-inference
Area: Type inference
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected all of the test functions to compile, but the last one fails to infer the type of the variable
x
.Error message:
Meta
Reproduces on nightly too.
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: