SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use std::{thread, time};
  2.  
  3. fn main() {
  4.     let text = String::from("Hello, world!");
  5.     let nums = vec![1, 2, 3];
  6.  
  7.     for num in nums {
  8.         println!("{}", num);
  9.         thread::sleep(time::Duration::from_secs(1));
  10.     }
  11.     println!("{}", text);
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top