Rollup merge of #94989 - compiler-errors:stream-alias, r=Dylan-DPC
Add Stream alias for AsyncIterator Fixes #94965
This commit is contained in:
commit
24a7aad082
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ use crate::task::{Context, Poll};
|
||||||
/// [impl]: index.html#implementing-async-iterator
|
/// [impl]: index.html#implementing-async-iterator
|
||||||
#[unstable(feature = "async_iterator", issue = "79024")]
|
#[unstable(feature = "async_iterator", issue = "79024")]
|
||||||
#[must_use = "async iterators do nothing unless polled"]
|
#[must_use = "async iterators do nothing unless polled"]
|
||||||
|
#[doc(alias = "Stream")]
|
||||||
pub trait AsyncIterator {
|
pub trait AsyncIterator {
|
||||||
/// The type of items yielded by the async iterator.
|
/// The type of items yielded by the async iterator.
|
||||||
type Item;
|
type Item;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue