Add test for macro by example syntax in decl macros with only one option
This commit is contained in:
parent
ff690931b7
commit
d23b57c1a8
1 changed files with 7 additions and 0 deletions
|
@ -30,3 +30,10 @@ pub macro my_macro_multi {
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
// @has decl_macro/macro.by_example_single.html //pre 'pub macro by_example_single($foo:expr) {'
|
||||
// @has - //pre '...'
|
||||
// @has - //pre '}'
|
||||
pub macro by_example_single {
|
||||
($foo:expr) => {}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue