diff options
Diffstat (limited to 'src/test/rustdoc/macros.rs')
-rw-r--r-- | src/test/rustdoc/macros.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/rustdoc/macros.rs b/src/test/rustdoc/macros.rs deleted file mode 100644 index ae0cf7a14..000000000 --- a/src/test/rustdoc/macros.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @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) => {}; - } -} |