diff options
Diffstat (limited to 'tests/ui/macros/macro-stmt-matchers.rs')
-rw-r--r-- | tests/ui/macros/macro-stmt-matchers.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-stmt-matchers.rs b/tests/ui/macros/macro-stmt-matchers.rs new file mode 100644 index 000000000..a643e50e9 --- /dev/null +++ b/tests/ui/macros/macro-stmt-matchers.rs @@ -0,0 +1,7 @@ +// build-pass (FIXME(62277): could be check-pass?) + + +fn main() { + macro_rules! m { ($s:stmt;) => { $s } } + m!(vec![].push(0);); +} |