Guest User

Untitled

a guest
May 26th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. fn main() {
  2. // moving the `let` to after the `macro_rules!` will cause this to fail
  3. let world = "world";
  4.  
  5. macro_rules! greet {
  6. () => { println!("Hello, {}!", world) }
  7. }
  8.  
  9. greet!();
  10. }
Add Comment
Please, Sign In to add comment