summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/intra-doc/extern-crate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/intra-doc/extern-crate.rs')
-rw-r--r--tests/rustdoc/intra-doc/extern-crate.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc/intra-doc/extern-crate.rs b/tests/rustdoc/intra-doc/extern-crate.rs
new file mode 100644
index 000000000..4e4438dea
--- /dev/null
+++ b/tests/rustdoc/intra-doc/extern-crate.rs
@@ -0,0 +1,9 @@
+// aux-build:intra-link-extern-crate.rs
+
+// When loading `extern crate` statements, we would pull in their docs at the same time, even
+// though they would never actually get displayed. This tripped intra-doc-link resolution failures,
+// for items that aren't under our control, and not actually getting documented!
+
+#![deny(rustdoc::broken_intra_doc_links)]
+
+extern crate inner;