Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- macro_rules! rest2 {
- ($a:tt $b:tt) => {
- println!("{} {}", stringify!($a), stringify!($b));
- };
- ($first:tt $( $rest:tt )*) => {
- rest2!($( $rest )*)
- };
- }
- fn main() {
- rest2!(1, 2, 3);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement