about summary refs log tree commit diff
path: root/tests/rustdoc/source-code-pages/src-links-inlined-34274.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/source-code-pages/src-links-inlined-34274.rs')
-rw-r--r--tests/rustdoc/source-code-pages/src-links-inlined-34274.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rustdoc/source-code-pages/src-links-inlined-34274.rs b/tests/rustdoc/source-code-pages/src-links-inlined-34274.rs
new file mode 100644
index 00000000000..8675ae4736e
--- /dev/null
+++ b/tests/rustdoc/source-code-pages/src-links-inlined-34274.rs
@@ -0,0 +1,11 @@
+//@ aux-build:issue-34274.rs
+//@ build-aux-docs
+//@ ignore-cross-compile
+
+// https://github.com/rust-lang/rust/issues/34274
+#![crate_name = "foo"]
+
+extern crate issue_34274;
+
+//@ has foo/fn.extern_c_fn.html '//a/@href' '../src/issue_34274/issue-34274.rs.html#2'
+pub use issue_34274::extern_c_fn;