Puzzle 22Waiting for Godot
 [package]
 name = ​"waiting_for_godot"
 version = ​"0.1.0"
 edition = ​"2018"
 
 [dependencies]
 tokio = ​{​ ​version​ ​=​ ​"1"​, ​features​ ​=​ ​["full"]​ ​}
 async ​fn​ ​hello​() {
  println!(​"Hello, World!"​)
 }
 
 #[tokio​::​main]
 pub​ async ​fn​ ​main​() ​->​ Result<(), Box<dyn ​std​::​error​::Error>> {
 hello​();
 Ok​(())
 }

Guess the Output

images/aside-icons/important.png

Try to guess what the output is before moving to the next page.

images/hline.png

The program will not print anything. ...

Get Rust Brain Teasers now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.