aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/crate-metavar1.rs
blob: 45384e1cfde67fa3dfe85965cc0080e0fd57d096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
macro_rules! foo {
    () => {
        $crate::inner::bar()
    }
}

pub mod inner {
    pub fn bar() { }
}

fn main() {
    foo!();
    crate::inner::bar();
}