about summary refs log tree commit diff
path: root/tests/ui/editions/auxiliary/nested_macro_rules_dep_2024.rs
blob: 4012398fe6622860ba27d803e31a598855eb8b79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//@ edition: 2024

#[macro_export]
macro_rules! make_macro_with_input {
    ($i:ident) => {
        macro_rules! macro_inner_input {
            () => {
                pub fn $i() {}
            };
        }
    };
}

#[macro_export]
macro_rules! make_macro {
    () => {
        macro_rules! macro_inner {
            () => {
                pub fn gen() {}
            };
        }
    };
}