diff --git a/src/future/into_future.rs b/src/future/into_future.rs index aa23b5d7f..58b676615 100644 --- a/src/future/into_future.rs +++ b/src/future/into_future.rs @@ -30,6 +30,8 @@ use crate::future::Future; /// } /// } /// ``` +#[cfg(any(feature = "unstable", feature = "docs"))] +#[cfg_attr(feature = "docs", doc(cfg(unstable)))] pub trait IntoFuture { /// The type of value produced on completion. type Output;