summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/intra-doc/extern-reference-link.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/intra-doc/extern-reference-link.rs')
-rw-r--r--tests/rustdoc/intra-doc/extern-reference-link.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rustdoc/intra-doc/extern-reference-link.rs b/tests/rustdoc/intra-doc/extern-reference-link.rs
new file mode 100644
index 000000000..bad6ec755
--- /dev/null
+++ b/tests/rustdoc/intra-doc/extern-reference-link.rs
@@ -0,0 +1,7 @@
+// compile-flags: --extern pub_struct
+// aux-build:pub-struct.rs
+
+/// [SomeStruct]
+///
+/// [SomeStruct]: pub_struct::SomeStruct
+pub fn foo() {}