summaryrefslogtreecommitdiff
path: root/samples/log.rs
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-10 15:37:02 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-10 15:37:02 +0800
commite71fccd80610bc05b0a90338b2b3beb9a0b94c22 (patch)
tree22162a90d614a200483bd0ceae629671ff798e41 /samples/log.rs
parent65558948954daaa2aec68b76814b043bf829d608 (diff)
downloadmrust-e71fccd80610bc05b0a90338b2b3beb9a0b94c22.tar.gz
Rework macro handling to support correct repetitions
Diffstat (limited to 'samples/log.rs')
-rw-r--r--samples/log.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/log.rs b/samples/log.rs
index eb9f544e..7b9f693e 100644
--- a/samples/log.rs
+++ b/samples/log.rs
@@ -1,5 +1,6 @@
+#[macro_export]
macro_rules! error{
- ($( $v:tt )*) => {};
+ ($( $v:tt )*) => {()};
}