Skip to content

Commit

Permalink
Add test for macro by example syntax in decl macros with only one option
Browse files Browse the repository at this point in the history
  • Loading branch information
CraftSpider committed Nov 29, 2020
1 parent ff69093 commit d23b57c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/rustdoc/decl_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {}
}

0 comments on commit d23b57c

Please sign in to comment.