1 // This used to compile the future down to ud2, due to uninhabited types being
2 // handled incorrectly in generators.
3 // compile-flags: -Copt-level=z -Cdebuginfo=2 --edition=2018
6 // ignore-asmjs wasm2js does not support source maps yet
8 use std::future::Future;
10 use std::task::Context;
15 impl Future for Never {
17 fn poll(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Self::Output> {
24 let _rc = Rc::new(()); // Also crashes with Arc
27 let _bla = fut; // Moving the future is required.