pub fn panic_waker() -> Waker {
    // FIXME: Since 1.46.0 we can use transmute in consts, allowing this function to be const.
    unsafe { Waker::from_raw(raw_panic_waker()) }
}
Create a new [`Waker`](futures_core::task::Waker) which will
panic when `wake()` is called on it. The [`Waker`] can be converted
into a [`Waker`] which will behave the same way.

# Examples

```should_panic
use futures_test::task::panic_waker;

let waker = panic_waker();
waker.wake(); // Will panic
```
futures-test/src/task/panic_waker.rs