mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
Add test for reexported macros 2.0 rendering
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
#![crate_name = "macro_2_reexport"]
|
||||
#![feature(decl_macro)]
|
||||
|
||||
pub macro addr_of($place:expr) {
|
||||
&raw const $place
|
||||
}
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user