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 fe49981 + 8d5a496 commit 2b8bf0dCopy full SHA for 2b8bf0d
library/core/src/panic/unwind_safe.rs
@@ -279,6 +279,13 @@ impl<T: fmt::Debug> fmt::Debug for AssertUnwindSafe<T> {
279
}
280
281
282
+#[stable(feature = "assertunwindsafe_default", since = "1.62.0")]
283
+impl<T: Default> Default for AssertUnwindSafe<T> {
284
+ fn default() -> Self {
285
+ Self(Default::default())
286
+ }
287
+}
288
+
289
#[stable(feature = "futures_api", since = "1.36.0")]
290
impl<F: Future> Future for AssertUnwindSafe<F> {
291
type Output = F::Output;
0 commit comments