Skip to content

Commit 9272cae

Browse files
Merge pull request #1716 from taiki-e/async_closure
Add #[feature(async_closure)] to examples
2 parents 373ae27 + ae3251d commit 9272cae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

futures-util/src/stream/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ pub trait StreamExt: Stream {
680680
/// # Examples
681681
///
682682
/// ```
683-
/// #![feature(async_await)]
683+
/// #![feature(async_await, async_closure)]
684684
/// # futures::executor::block_on(async {
685685
/// use futures::channel::oneshot;
686686
/// use futures::stream::{self, StreamExt};

futures-util/src/try_stream/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ pub trait TryStreamExt: TryStream {
396396
/// # Examples
397397
///
398398
/// ```
399-
/// #![feature(async_await)]
399+
/// #![feature(async_await, async_closure)]
400400
/// # futures::executor::block_on(async {
401401
/// use futures::channel::oneshot;
402402
/// use futures::stream::{self, StreamExt, TryStreamExt};

0 commit comments

Comments
 (0)