1 // Regression test for <https://github.com/rust-lang/rust/issues/73137>
7 #![feature(wake_trait)]
8 use std
::future
::Future
;
9 use std
::task
::{Waker, Wake, Context}
;
13 impl Wake
for DummyWaker
{
14 fn wake(self: Arc
<Self>) {}
26 let mut fut
= Box
::pin(async
{
32 // An error in the generator transform caused `b` to be overwritten with `a` when `b` was
35 assert_ne
!(0usize
, unsafe { std::mem::transmute(action.b) }
);
39 let waker
= Waker
::from(Arc
::new(DummyWaker
));
40 let mut cx
= Context
::from_waker(&waker
);
41 let _
= fut
.as_mut().poll(&mut cx
);