]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-96555.rs
Rollup merge of #107264 - ferrocene:pa-private-items, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / issue-96555.rs
1 // edition:2018
2
3 async fn f() {
4     m::f1().await; //~ ERROR `()` is not a future
5     m::f2().await; //~ ERROR `()` is not a future
6     m::f3().await; //~ ERROR `()` is not a future
7 }
8
9 mod m {
10     pub fn f1() {}
11
12     pub(crate) fn f2() {}
13
14     pub
15     fn
16     f3() {}
17 }
18
19 fn main() {}