mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Add rustdoc test.
This commit is contained in:
parent
59f1ccd35c
commit
abef2ed2bc
@ -8,3 +8,17 @@ macro_rules! my_macro {
|
||||
($a:tt) => ();
|
||||
($e:expr) => {};
|
||||
}
|
||||
|
||||
// Check that exported macro defined in a module are shown at crate root.
|
||||
// @has macros/macro.my_sub_macro.html //pre 'macro_rules! my_sub_macro {'
|
||||
// @has - //pre '() => { ... };'
|
||||
// @has - //pre '($a:tt) => { ... };'
|
||||
// @has - //pre '($e:expr) => { ... };'
|
||||
mod sub {
|
||||
#[macro_export]
|
||||
macro_rules! my_sub_macro {
|
||||
() => {};
|
||||
($a:tt) => {};
|
||||
($e:expr) => {};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user