We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ea1bab + d910253 commit 5373eb1Copy full SHA for 5373eb1
1 file changed
library/core/src/num/niche_types.rs
@@ -112,7 +112,8 @@ impl Nanoseconds {
112
pub const ZERO: Self = unsafe { Nanoseconds::new_unchecked(0) };
113
}
114
115
-impl Default for Nanoseconds {
+#[rustc_const_unstable(feature = "const_default", issue = "143894")]
116
+impl const Default for Nanoseconds {
117
#[inline]
118
fn default() -> Self {
119
Self::ZERO
0 commit comments