Wrap Context.ext in AssertUnwindSafe
This commit is contained in:
parent
39e02f1bd1
commit
3a21fb5cec
4 changed files with 27 additions and 42 deletions
|
@ -11,7 +11,6 @@ fn main() {
|
|||
|
||||
is_unwindsafe(async {
|
||||
//~^ ERROR the type `&mut Context<'_>` may not be safely transferred across an unwind boundary
|
||||
//~| ERROR the type `&mut (dyn Any + 'static)` may not be safely transferred across an unwind boundary
|
||||
use std::ptr::null;
|
||||
use std::task::{Context, RawWaker, RawWakerVTable, Waker};
|
||||
let waker = unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue