]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/macros.rs
Rollup merge of #57859 - GuillaumeGomez:fix-background, r=QuietMisdreavus
[rust.git] / src / test / rustdoc / macros.rs
1 // @has macros/macro.my_macro.html //pre 'macro_rules! my_macro {'
2 // @has - //pre '() => { ... };'
3 // @has - //pre '($a:tt) => { ... };'
4 // @has - //pre '($e:expr) => { ... };'
5 // @has macros/macro.my_macro!.html
6 // @has - //a 'macro.my_macro.html'
7 #[macro_export]
8 macro_rules! my_macro {
9     () => [];
10     ($a:tt) => ();
11     ($e:expr) => {};
12 }