summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issue-101715.rs
blob: 1be5d02482e8438ad5a85972ade53ecd909e9b2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// edition:2018

struct S;

impl S {
    fn very_long_method_name_the_longest_method_name_in_the_whole_universe(self) {}
}

async fn foo() {
    S.very_long_method_name_the_longest_method_name_in_the_whole_universe()
        .await
        //~^ error: `()` is not a future
        //~| help: remove the `.await`
        //~| help: the trait `Future` is not implemented for `()`
}

fn main() {}