summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/search-index-summaries.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/search-index-summaries.rs')
-rw-r--r--tests/rustdoc/search-index-summaries.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rustdoc/search-index-summaries.rs b/tests/rustdoc/search-index-summaries.rs
new file mode 100644
index 000000000..efd366405
--- /dev/null
+++ b/tests/rustdoc/search-index-summaries.rs
@@ -0,0 +1,10 @@
+#![crate_name = "foo"]
+
+// @hasraw 'search-index.js' 'Foo short link.'
+// @!hasraw - 'www.example.com'
+// @!hasraw - 'More Foo.'
+
+/// Foo short [link](https://www.example.com/).
+///
+/// More Foo.
+pub struct Foo;