Skip to content

Commit 14a8707

Browse files
ecstatic-morsejyn514
authored andcommitted
Add rustdoc tests from rust-lang#72088
1 parent 1b8accb commit 14a8707

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Regression issue for rustdoc ICE encountered in PR #72088.
2+
// edition:2018
3+
#![feature(decl_macro)]
4+
5+
fn main() {
6+
async {
7+
macro m() {}
8+
};
9+
}

src/test/rustdoc/macro-in-closure.rs

+7
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,11 @@ fn main() {
66
|| {
77
macro m() {}
88
};
9+
10+
let _ = || {
11+
macro n() {}
12+
};
13+
14+
let cond = true;
15+
let _ = || if cond { macro n() {} } else { panic!() };
916
}

0 commit comments

Comments
 (0)