Rollup merge of #94989 - compiler-errors:stream-alias, r=Dylan-DPC

Add Stream alias for AsyncIterator

Fixes #94965
This commit is contained in:
Matthias Krüger 2022-03-20 09:15:00 +01:00 committed by GitHub
commit 24a7aad082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ use crate::task::{Context, Poll};
/// [impl]: index.html#implementing-async-iterator
#[unstable(feature = "async_iterator", issue = "79024")]
#[must_use = "async iterators do nothing unless polled"]
#[doc(alias = "Stream")]
pub trait AsyncIterator {
/// The type of items yielded by the async iterator.
type Item;