about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDániel Buga <bugadani@gmail.com>2020-11-30 23:17:11 +0100
committerDániel Buga <bugadani@gmail.com>2020-12-14 11:00:54 +0100
commitfa64c272c8253c9df01fa4c28e34095735411e0e (patch)
treef4076ecb9608731a1845cc4897717c14f9d54452
parentcc31b992b1919ddf0d0b05e90c0f37b40f77d4e8 (diff)
downloadrust-fa64c272c8253c9df01fa4c28e34095735411e0e.tar.gz
rust-fa64c272c8253c9df01fa4c28e34095735411e0e.zip
Add test case for Self:: links
-rw-r--r--src/test/rustdoc/intra-link-self-cache.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/rustdoc/intra-link-self-cache.rs b/src/test/rustdoc/intra-link-self-cache.rs
new file mode 100644
index 00000000000..add1530a5a6
--- /dev/null
+++ b/src/test/rustdoc/intra-link-self-cache.rs
@@ -0,0 +1,14 @@
+#![crate_name = "foo"]
+// @has foo/enum.E1.html '//a/@href' '../foo/enum.E1.html#variant.A'
+
+/// [Self::A::b]
+pub enum E1 {
+    A { b: usize }
+}
+
+// @has foo/enum.E2.html '//a/@href' '../foo/enum.E2.html#variant.A'
+
+/// [Self::A::b]
+pub enum E2 {
+    A { b: usize }
+}