Guest User

Untitled

a guest
Oct 23rd, 2019
90
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