Skip to content

Commit

Permalink
Add rustdoc test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Jan 5, 2021
1 parent 59f1ccd commit abef2ed
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/rustdoc/macros.rs
Expand Up @@ -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) => {};
}
}

0 comments on commit abef2ed

Please sign in to comment.