impl_trait_in_fn_trait_return / impl_trait_in_assoc_type doesn't resolve future correctly #122458
Labels
A-inference
Area: Type inference
C-bug
Category: This is a bug.
F-impl_trait_in_assoc_type
`#![feature(impl_trait_in_assoc_type)]`
F-impl_trait_in_fn_trait_return
`#![feature(impl_trait_in_fn_trait_return)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
This almost compiles. If you remove the
o.run
call it otherwise compiles. It seems that rust isn't able to determine that the async block impls the Future trait in main (but does work in the stub!). Think it's related to #106527. cc @compiler-errorsMeta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: