Skip to content

Instantly share code, notes, and snippets.

@sfackler
Forked from anonymous/gist:9009592
Last active August 29, 2015 13:56
Show Gist options
  • Save sfackler/9009653 to your computer and use it in GitHub Desktop.
Save sfackler/9009653 to your computer and use it in GitHub Desktop.
#[feature(macro_rules)];
use spec::test;
#[macro_escape]
mod spec {
macro_rules! my_macro (
() => (println!("hello"));
)
pub fn test() -> () {
my_macro!();
}
}
fn main() -> () {
my_macro!()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment