Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
24
tests/rustdoc/macros.rs
Normal file
24
tests/rustdoc/macros.rs
Normal file
|
@ -0,0 +1,24 @@
|
|||
// @has macros/macro.my_macro.html //pre 'macro_rules! my_macro {'
|
||||
// @has - //pre '() => { ... };'
|
||||
// @has - //pre '($a:tt) => { ... };'
|
||||
// @has - //pre '($e:expr) => { ... };'
|
||||
#[macro_export]
|
||||
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…
Add table
Add a link
Reference in a new issue