summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/link-title-escape.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/link-title-escape.rs')
-rw-r--r--tests/rustdoc/link-title-escape.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc/link-title-escape.rs b/tests/rustdoc/link-title-escape.rs
new file mode 100644
index 000000000..7a322ea6d
--- /dev/null
+++ b/tests/rustdoc/link-title-escape.rs
@@ -0,0 +1,9 @@
+#![allow(rustdoc::broken_intra_doc_links)]
+
+#![crate_name = "foo"]
+
+//! hello [foo]
+//!
+//! [foo]: url 'title & <stuff> & "things"'
+
+// @hasraw 'foo/index.html' 'title &amp; &lt;stuff&gt; &amp; &quot;things&quot;'