summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 0e1f7bc8d0dafaedfd2ff75afafd2ee57c1e959b (plain)
1
2
3
4
5
6
7
8
9
10
use futures::executor::block_on;

async fn hello_world() {
    println!("hello, world!");
}

fn main() {
    let future = hello_world();
    block_on(future);
}