summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e7a11a9..0e1f7bc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,10 @@
+use futures::executor::block_on;
+
+async fn hello_world() {
+ println!("hello, world!");
+}
+
fn main() {
- println!("Hello, world!");
+ let future = hello_world();
+ block_on(future);
}