Add rustdoc tests from #72088

This commit is contained in:
Dylan MacKenzie 2020-06-07 15:13:40 -07:00 committed by Joshua Nelson
parent 1b8accb749
commit 14a8707cde
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,9 @@
// Regression issue for rustdoc ICE encountered in PR #72088.
// edition:2018
#![feature(decl_macro)]
fn main() {
async {
macro m() {}
};
}

View File

@ -6,4 +6,11 @@ fn main() {
|| {
macro m() {}
};
let _ = || {
macro n() {}
};
let cond = true;
let _ = || if cond { macro n() {} } else { panic!() };
}