Doctests need feature

上级 3ff5879f
......@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册