Skip to content

FutureExt::remote_handle causes a silent panic #2900

Open
@Hakuyume

Description

@Hakuyume

The following code causes Exited with status 101.

use futures::FutureExt;

fn main() {
    futures::executor::block_on(async {
        let f = std::future::pending::<()>();
        let (remote, remote_handle) = f.remote_handle();
        // poll remote at least once
        futures::future::select(remote, std::future::ready(())).await;
        remote_handle.await
    });
}

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d62babe3ab6856b94d7a95fffdb457e4

The expected behavior is pending infinity on remote_handle.await .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions