summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/macro-nested_definition_issue-31946.rs
blob: a83c5b2e44fe372da5293b737fa07a604ea40b06 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
fn main() {
    println!("{}", {
        macro_rules! foo {
            ($name:expr) => { concat!("hello ", $name) }
        }
        foo!("rust")
    });
}