Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- macro_rules! expand {
- (
- #[foo]
- $(#[$attr:meta])*
- pub fn foo() {}
- ) => (
- expand! {
- $(#[$attr])*
- pub fn foo() {}
- }
- );
- (
- #[bar($a:meta)]
- pub fn foo() {}
- ) => (
- expand! {
- pub fn foo() {}
- }
- );
- (
- pub fn foo() {}
- ) => (
- pub fn foo() {}
- )
- }
- expand! {
- #[foo]
- #[bar(a)]
- pub fn foo() {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement