Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many `type inside `async` object must be known in this context` errors #66445

olegnn opened this issue Nov 15, 2019 · 0 comments


Copy link

@olegnn olegnn commented Nov 15, 2019

This code (Playground)

use futures::stream::{iter/*, StreamExt*/};

async fn produce_11_errors() {
    iter(vec![1, 2, 3])/*.collect::<Vec<_>>()*/.await;

fn main() {}

currently produces 11 errors:

  • 1 of the trait bound is not satisfied
  • 10 of type inside async object must be known in this context.

If you add elements to vec, it will generate even more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
4 participants
You can’t perform that action at this time.