summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-96555.rs
blob: 9f0a047c6e9a80c14949bbd6174b305c432ee82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// edition:2018

async fn f() {
    m::f1().await; //~ ERROR `()` is not a future
    m::f2().await; //~ ERROR `()` is not a future
    m::f3().await; //~ ERROR `()` is not a future
}

mod m {
    pub fn f1() {}

    pub(crate) fn f2() {}

    pub
    fn
    f3() {}
}

fn main() {}