Skip to content

Commit d23b57c

Browse files
committed
Add test for macro by example syntax in decl macros with only one option
1 parent ff69093 commit d23b57c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/rustdoc/decl_macro.rs

+7
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ pub macro my_macro_multi {
3030

3131
}
3232
}
33+
34+
// @has decl_macro/macro.by_example_single.html //pre 'pub macro by_example_single($foo:expr) {'
35+
// @has - //pre '...'
36+
// @has - //pre '}'
37+
pub macro by_example_single {
38+
($foo:expr) => {}
39+
}

0 commit comments

Comments
 (0)