about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRune Tynan <runetynan@gmail.com>2020-11-28 21:32:07 -0500
committerRune Tynan <runetynan@gmail.com>2020-11-28 21:32:07 -0500
commitd23b57c1a8d1002df09c6213bd28884d973e116a (patch)
tree989611d34c307ded3c4deae66abf7d1185538309
parentff690931b7aeff7c1b0f5bf6a33ce2b1b980ab70 (diff)
downloadrust-d23b57c1a8d1002df09c6213bd28884d973e116a.tar.gz
rust-d23b57c1a8d1002df09c6213bd28884d973e116a.zip
Add test for macro by example syntax in decl macros with only one option
-rw-r--r--src/test/rustdoc/decl_macro.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/rustdoc/decl_macro.rs b/src/test/rustdoc/decl_macro.rs
index 42a29799483..e48a56f906c 100644
--- a/src/test/rustdoc/decl_macro.rs
+++ b/src/test/rustdoc/decl_macro.rs
@@ -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) => {}
+}