diff --git a/library/core/src/result.rs b/library/core/src/result.rs index 092e6544342..d3587a1b2b8 100644 --- a/library/core/src/result.rs +++ b/library/core/src/result.rs @@ -1889,7 +1889,8 @@ impl> FromIterator> for Result { } #[unstable(feature = "try_trait_v2", issue = "84277")] -impl ops::Try for Result { +#[rustc_const_unstable(feature = "const_convert", issue = "none")] +impl const ops::Try for Result { type Output = T; type Residual = Result; @@ -1908,7 +1909,8 @@ impl ops::Try for Result { } #[unstable(feature = "try_trait_v2", issue = "84277")] -impl> ops::FromResidual> for Result { +#[rustc_const_unstable(feature = "const_convert", issue = "none")] +impl> const ops::FromResidual> for Result { #[inline] fn from_residual(residual: Result) -> Self { match residual {