Closed
Description
If a user attempts to do something like this (playground including trivial executor):
async fn foo() {
}
fn main() {
let mut future = Box::pin(foo());
executor::block_on(future.as_mut());
executor::block_on(future.as_mut());
}
they get a panic talking about generators:
thread 'main' panicked at 'generator resumed after completion', src/main.rs:1:16
This issue has been assigned to @ninjasource via this comment.