summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/pub-item-inside-macro.rs
blob: d07681453a23ab92cfbe78b55d7c5b82c59f235b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// run-pass
// Issue #14660

// pretty-expanded FIXME #23616

mod bleh {
    macro_rules! foo {
        () => {
            pub fn bar() { }
        }
    }

    foo!();
}

fn main() {
    bleh::bar();
}