about summary refs log tree commit diff
path: root/tests/ui/editions/auxiliary/nested_macro_rules_dep_2021.rs
blob: 36d3e712dc0e973004882b279c718f88ac06818e (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: 2021

#[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() {}
            };
        }
    };
}