Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- macro_rules! asi {
- ($($stmts:stmt)*) => {
- $($stmts);*
- };
- }
- fn main() {
- asi! {
- let x = 5 if x > 2 { println!("Hallo {}", x) } if x <= 2 { unreachable!() } if x % 2 == 1 { println!("Me even :D") }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement