Created
July 22, 2016 20:27
-
-
Save tilpner/37a1be0e9a5ab9534caf23e571d5f1d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro_rules! attr_each { | |
($attr: meta for $($i: item)*) => { | |
$( | |
#[$attr] | |
$i | |
)* | |
} | |
} | |
attr_each! { | |
doc = "foo" for | |
pub fn foo() {} | |
pub fn bar() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment