diff --git a/src/libstd/panic.rs b/src/libstd/panic.rs index 83df54f1830..69a1b57a0c5 100644 --- a/src/libstd/panic.rs +++ b/src/libstd/panic.rs @@ -193,6 +193,12 @@ impl AssertRecoverSafe { pub fn new(t: T) -> AssertRecoverSafe { AssertRecoverSafe(t) } + + /// Consumes the `AssertRecoverSafe`, returning the wrapped value. + #[unstable(feature = "recover", reason = "awaiting feedback", issue = "27719")] + pub fn into_inner(self) -> T { + self.0 + } } impl Deref for AssertRecoverSafe {