]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/macro-in-closure.rs
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / rustdoc / macro-in-closure.rs
1 // Regression issue for rustdoc ICE encountered in PR #65252.
2
3 #![feature(decl_macro)]
4
5 fn main() {
6     || {
7         macro m() {}
8     };
9
10     let _ = || {
11         macro n() {}
12     };
13
14     let cond = true;
15     let _ = || if cond { macro n() {} } else { panic!() };
16 }