summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/intra-doc/reference-links.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/intra-doc/reference-links.rs')
-rw-r--r--tests/rustdoc-ui/intra-doc/reference-links.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/intra-doc/reference-links.rs b/tests/rustdoc-ui/intra-doc/reference-links.rs
new file mode 100644
index 000000000..e81e03446
--- /dev/null
+++ b/tests/rustdoc-ui/intra-doc/reference-links.rs
@@ -0,0 +1,6 @@
+// Test that errors point to the reference, not to the title text.
+#![deny(rustdoc::broken_intra_doc_links)]
+//! Links to [a] [link][a]
+//!
+//! [a]: std::process::Comman
+//~^ ERROR unresolved