mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
20 lines
284 B
Rust
20 lines
284 B
Rust
//@ 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() {}
|