Add rustdoc
tests from #72088
This commit is contained in:
parent
1b8accb749
commit
14a8707cde
9
src/test/rustdoc/macro-in-async-block.rs
Normal file
9
src/test/rustdoc/macro-in-async-block.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// Regression issue for rustdoc ICE encountered in PR #72088.
|
||||
// edition:2018
|
||||
#![feature(decl_macro)]
|
||||
|
||||
fn main() {
|
||||
async {
|
||||
macro m() {}
|
||||
};
|
||||
}
|
@ -6,4 +6,11 @@ fn main() {
|
||||
|| {
|
||||
macro m() {}
|
||||
};
|
||||
|
||||
let _ = || {
|
||||
macro n() {}
|
||||
};
|
||||
|
||||
let cond = true;
|
||||
let _ = || if cond { macro n() {} } else { panic!() };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user