Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::{thread, time};
- fn main() {
- let text = String::from("Hello, world!");
- let nums = vec![1, 2, 3];
- for num in nums {
- println!("{}", num);
- thread::sleep(time::Duration::from_secs(1));
- }
- println!("{}", text);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement