Skip to content

Instantly share code, notes, and snippets.

@jbclements
Created June 6, 2013 18:55
Show Gist options
  • Save jbclements/5723959 to your computer and use it in GitHub Desktop.
Save jbclements/5723959 to your computer and use it in GitHub Desktop.
I expect this to fail under existing versions of rust
macro_rules! fmt_with_13{
($x:expr) => (fmt!($x,13))
}
fn main() {
assert_eq!((fmt_with_13!("thirteen: %?")),~"thirteen: 13");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment