SHARE
TWEET

Untitled

a guest Jul 18th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. macro_rules! rest2 {
  2.     ($a:tt $b:tt) => {
  3.         println!("{} {}", stringify!($a), stringify!($b));
  4.     };
  5.     ($first:tt $( $rest:tt )*) => {
  6.         rest2!($( $rest )*)
  7.     };
  8. }
  9.  
  10.  
  11. fn main() {
  12.     rest2!(1, 2, 3);
  13. }
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