From ef74699fdfa9bbdd18b9b87ab0b39e9d37451b0d Mon Sep 17 00:00:00 2001 From: ero-qt Date: Sun, 11 Oct 2026 06:43:35 +0200 Subject: [PATCH] gate future doc example on alloc --- src/future/mod.rs | 2 ++ 1 file changed, 2 insertions(+) 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