mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
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
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user