From af2558094cdfe877414d5e16da6f23092cfab6a2 Mon Sep 17 00:00:00 2001 From: nxsaken Date: Sat, 11 Apr 2026 11:36:54 +0400 Subject: [PATCH] impl const Residual for ControlFlow --- library/core/src/ops/control_flow.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/core/src/ops/control_flow.rs b/library/core/src/ops/control_flow.rs index b15712d3599c6..f532e8f116f05 100644 --- a/library/core/src/ops/control_flow.rs +++ b/library/core/src/ops/control_flow.rs @@ -134,7 +134,8 @@ impl const ops::FromResidual> for Cont } #[unstable(feature = "try_trait_v2_residual", issue = "91285")] -impl ops::Residual for ControlFlow { +#[rustc_const_unstable(feature = "const_try_residual", issue = "91285")] +impl const ops::Residual for ControlFlow { type TryType = ControlFlow; }