Skip to content

Instantly share code, notes, and snippets.

@jbclements
Created September 12, 2013 18:06
Show Gist options
  • Save jbclements/6541556 to your computer and use it in GitHub Desktop.
Save jbclements/6541556 to your computer and use it in GitHub Desktop.
trying to use a macro that's out of scope
fn f() -> int {
macro_rules! a (() => (3));
return a!();
}
fn main() {
a!();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment