diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-05 16:40:02 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-05 17:47:18 +0200 |
| commit | d1f4a0bcb60ab868c496ca72a28b48ac0a4128af (patch) | |
| tree | 5f9dc3dd1df27f8d4a2f7f06950943cc4ab3cc5c /tests/rustdoc/macros.rs | |
| parent | eee6c9753588fe1888d3ddb264f9516e7ac56997 (diff) | |
| download | rust-d1f4a0bcb60ab868c496ca72a28b48ac0a4128af.tar.gz rust-d1f4a0bcb60ab868c496ca72a28b48ac0a4128af.zip | |
Created `tests/rustdoc/macro` subfolder to limit number of files at the top level
Diffstat (limited to 'tests/rustdoc/macros.rs')
| -rw-r--r-- | tests/rustdoc/macros.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/rustdoc/macros.rs b/tests/rustdoc/macros.rs deleted file mode 100644 index d08babc25f8..00000000000 --- a/tests/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) => {}; - } -} |
