File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ impl Duration {
64
64
/// # Examples
65
65
///
66
66
/// ```
67
+ /// #![feature(duration_constants)]
67
68
/// use std::time::Duration;
68
69
///
69
70
/// assert_eq!(Duration::SECOND, Duration::from_secs(1));
@@ -76,6 +77,7 @@ impl Duration {
76
77
/// # Examples
77
78
///
78
79
/// ```
80
+ /// #![feature(duration_constants)]
79
81
/// use std::time::Duration;
80
82
///
81
83
/// assert_eq!(Duration::MILLISECOND, Duration::from_millis(1));
@@ -88,6 +90,7 @@ impl Duration {
88
90
/// # Examples
89
91
///
90
92
/// ```
93
+ /// #![feature(duration_constants)]
91
94
/// use std::time::Duration;
92
95
///
93
96
/// assert_eq!(Duration::MICROSECOND, Duration::from_micros(1));
@@ -100,6 +103,7 @@ impl Duration {
100
103
/// # Examples
101
104
///
102
105
/// ```
106
+ /// #![feature(duration_constants)]
103
107
/// use std::time::Duration;
104
108
///
105
109
/// assert_eq!(Duration::NANOSECOND, Duration::from_nanos(1));
You can’t perform that action at this time.
0 commit comments