False-positive type-mismatch
error with generic future
#12441
Labels
A-diagnostics
diagnostics / error reporting
A-ty
type system / type inference / traits / method resolution
C-bug
Category: bug
Description
It seems rust analyzer can't resolve the output type of a future if that output is generic on another future's output type, leading to erroneous
type-mismatch
errors.I initially ran into this using try_for_each_concurrent on a stream, but managed to narrow the problem to a much simpler reproduction.
Reproduction (playground)
rust-analyzer version: f94fa62 2022-05-30 stable
rustc version: rustc 1.61.0 (fe5b13d68 2022-05-18)
The text was updated successfully, but these errors were encountered: