Open
Description
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.
Metadata
Metadata
Assignees
Labels
Area: Async & AwaitArea: Messages for errors, warnings, and lintsArea: Type inferenceAsync-await issues that have been triaged during a working group meeting.Category: This is a bug.Diagnostics: Too much output caused by a single piece of incorrect code.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Projects
Status
Claimed