diff options
Diffstat (limited to 'tests/ui/macros/issue-40770.rs')
-rw-r--r-- | tests/ui/macros/issue-40770.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-40770.rs b/tests/ui/macros/issue-40770.rs new file mode 100644 index 000000000..c9713c157 --- /dev/null +++ b/tests/ui/macros/issue-40770.rs @@ -0,0 +1,11 @@ +// run-pass +#![allow(unused_macros)] +macro_rules! m { + ($e:expr) => { + macro_rules! n { () => { $e } } + } +} + +fn main() { + m!(foo!()); +} |