summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/macro-in-closure.rs
blob: b4411d927e271077c64570f21bd1beba0eb83c53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Regression issue for rustdoc ICE encountered in PR #65252.

#![feature(decl_macro)]

fn main() {
    || {
        macro m() {}
    };

    let _ = || {
        macro n() {}
    };

    let cond = true;
    let _ = || if cond { macro n() {} } else { panic!() };
}