summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-ui/intra-doc/double-anchor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc-ui/intra-doc/double-anchor.rs')
-rw-r--r--src/test/rustdoc-ui/intra-doc/double-anchor.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/intra-doc/double-anchor.rs b/src/test/rustdoc-ui/intra-doc/double-anchor.rs
new file mode 100644
index 000000000..a01211c4f
--- /dev/null
+++ b/src/test/rustdoc-ui/intra-doc/double-anchor.rs
@@ -0,0 +1,7 @@
+// check-pass
+
+// regression test for #73264
+// should only give one error
+/// docs [label][with#anchor#error]
+//~^ WARNING multiple anchors
+pub struct S;