diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/macros/macro-non-lifetime.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/macros/macro-non-lifetime.stderr b/src/test/ui/macros/macro-non-lifetime.stderr new file mode 100644 index 000000000..6234735df --- /dev/null +++ b/src/test/ui/macros/macro-non-lifetime.stderr @@ -0,0 +1,11 @@ +error: no rules expected the token `a` + --> $DIR/macro-non-lifetime.rs:6:8 + | +LL | macro_rules! m { ($x:lifetime) => { } } + | -------------- when calling this macro +... +LL | m!(a); + | ^ no rules expected this token in macro call + +error: aborting due to previous error + |