Add test for macro by example syntax in decl macros with only one option

This commit is contained in:
Rune Tynan 2020-11-28 21:32:07 -05:00
parent ff690931b7
commit d23b57c1a8
No known key found for this signature in database
GPG Key ID: 7ECC932F8B2C731E
1 changed files with 7 additions and 0 deletions

View File

@ -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) => {}
}