diff --git a/src/libcore/time.rs b/src/libcore/time.rs index cf88ff2e10f..d94f2378058 100644 --- a/src/libcore/time.rs +++ b/src/libcore/time.rs @@ -228,6 +228,7 @@ pub const fn from_nanos(nanos: u64) -> Duration { /// # Examples /// /// ``` + /// #![feature(duration_zero)] /// use std::time::Duration; /// /// let duration = Duration::zero(); @@ -247,6 +248,7 @@ pub const fn zero() -> Duration { /// # Examples /// /// ``` + /// #![feature(duration_zero)] /// use std::time::Duration; /// /// assert!(Duration::zero().is_zero());