summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issues/issue-107280.rs
blob: 85fce87403a9bb8e9acb1a3da2d5feffa38c4721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// edition:2021

async fn foo() {
    inner::<false>().await
    //~^ ERROR: function takes 2 generic arguments but 1 generic argument was supplied
    //~| ERROR: type inside `async fn` body must be known in this context
    //~| ERROR: type inside `async fn` body must be known in this context
    //~| ERROR: type inside `async fn` body must be known in this context
    //~| ERROR: type inside `async fn` body must be known in this context
    //~| ERROR: type inside `async fn` body must be known in this context
}

async fn inner<T, const PING: bool>() {}

fn main() {}