Created
June 6, 2013 18:55
-
-
Save jbclements/5723959 to your computer and use it in GitHub Desktop.
I expect this to fail under existing versions of rust
This file contains hidden or 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! 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