diff options
Diffstat (limited to 'tests/ui/macros/macro-meta-items-modern.rs')
-rw-r--r-- | tests/ui/macros/macro-meta-items-modern.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-meta-items-modern.rs b/tests/ui/macros/macro-meta-items-modern.rs new file mode 100644 index 000000000..bc6938d4a --- /dev/null +++ b/tests/ui/macros/macro-meta-items-modern.rs @@ -0,0 +1,11 @@ +// check-pass + +macro_rules! check { ($meta:meta) => () } + +check!(meta(a b c d)); +check!(meta[a b c d]); +check!(meta { a b c d }); +check!(meta); +check!(meta = 0); + +fn main() {} |