Skip to content

Commit c70250d

Browse files
Add test for reexported macros 2.0 rendering
1 parent d1ad40e commit c70250d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#![crate_name = "macro_2_reexport"]
2+
#![feature(decl_macro)]
3+
4+
pub macro addr_of($place:expr) {
5+
&raw const $place
6+
}

src/test/rustdoc/macro-2-reexport.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// aux-build: macro-2-reexport.rs
2+
3+
#![crate_name = "foo"]
4+
5+
extern crate macro_2_reexport;
6+
7+
// @has 'foo/macro.addr_of.html' '//*[@class="docblock type-decl"]' 'macro addr_of($place : expr) {'
8+
pub use macro_2_reexport::addr_of;

0 commit comments

Comments
 (0)