Closed jjeffcaii closed 3 years ago
the future returned by foobar is not UnwindSafe. you need to use AssertUnwindSafe
- x.foobar().catch_unwind().await;
+ AssertUnwindSafe(x.foobar()).catch_unwind().await;
@taiki-e It works! Thanks! 😄
Hi:
I got a compile error when using
catch_unwind
, I don't know how to change my code to resolve this problem.Here's a simple example:
Thanks!