]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/macros.rs
Auto merge of #56838 - Aaron1011:fix/rustdoc-infer-unify, r=nikomatsakis
[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 }