summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-40770.rs
blob: c9713c157981d52cb2b33c521ff5682f2a97b3a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
#![allow(unused_macros)]
macro_rules! m {
    ($e:expr) => {
        macro_rules! n { () => { $e } }
    }
}

fn main() {
    m!(foo!());
}