Add test for reexported macros 2.0 rendering

This commit is contained in:
Guillaume Gomez 2021-07-03 15:11:56 +02:00
parent d1ad40eac4
commit c70250dfbd
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#![crate_name = "macro_2_reexport"]
#![feature(decl_macro)]
pub macro addr_of($place:expr) {
&raw const $place
}

View File

@ -0,0 +1,8 @@
// aux-build: macro-2-reexport.rs
#![crate_name = "foo"]
extern crate macro_2_reexport;
// @has 'foo/macro.addr_of.html' '//*[@class="docblock type-decl"]' 'macro addr_of($place : expr) {'
pub use macro_2_reexport::addr_of;