diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-34418.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-34418.rs b/src/test/ui/issues/issue-34418.rs new file mode 100644 index 000000000..6132f744b --- /dev/null +++ b/src/test/ui/issues/issue-34418.rs @@ -0,0 +1,19 @@ +// check-pass + +macro_rules! make_item { + () => { fn f() {} } +} + +macro_rules! make_stmt { + () => { let x = 0; } +} + +fn f() { + make_item! {} +} + +fn g() { + make_stmt! {} +} + +fn main() {} |