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.
Try::into_result
1 parent 507fa98 commit a77b588Copy full SHA for a77b588
library/core/src/ops/try.rs
@@ -123,6 +123,15 @@ pub trait Try2021: FromResidual {
123
ControlFlow::Break(r) => FromResidual::from_residual(r),
124
}
125
126
+
127
+ /// Hack so that calls to `Try::into_result` keep building on nightly for a while
128
+ #[unstable(feature = "try_trait", issue = "42327")]
129
+ fn into_result(self) -> Result<<Self as Try2015>::Ok, <Self as Try2015>::Error>
130
+ where
131
+ Self: Try2015,
132
+ {
133
+ <Self as Try2015>::into_result(self)
134
+ }
135
136
137
/// Allows you to pick with other types can be converted into your `Try` type.
0 commit comments