diff --git a/src/future/mod.rs b/src/future/mod.rs index 94f7c89c..b5e44f0e 100644 --- a/src/future/mod.rs +++ b/src/future/mod.rs @@ -81,7 +81,9 @@ //! entire future will complete once all tasks have completed. //! //! ```no_run +//! # #[cfg(feature = "alloc")] //! # use asr::future::run_tasks; +//! # #[cfg(feature = "alloc")] //! # async fn example() { //! run_tasks(|tasks| async move { //! // do some work