summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issue-108572.rs
blob: efcb8b8ebab0a7ebbc326870a510d10d57de96f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// edition: 2021

use std::future::Future;
fn foo() -> impl Future<Output=()> {
    async { }
}

fn main() {
    let fut = foo();
    fut.poll();
    //~^ ERROR no method named `poll` found for opaque type `impl Future<Output = ()>` in the current scope [E0599]
}