summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/link-extern-crate-33178.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:48:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:48:42 +0000
commitcec1877e180393eba0f6ddb0cf97bf3a791631c7 (patch)
tree47b4dac2a9dd9a40c30c251b4d4a72d7ccf77e9f /tests/rustdoc/link-extern-crate-33178.rs
parentAdding debian version 1.74.1+dfsg1-1. (diff)
downloadrustc-cec1877e180393eba0f6ddb0cf97bf3a791631c7.tar.xz
rustc-cec1877e180393eba0f6ddb0cf97bf3a791631c7.zip
Merging upstream version 1.75.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/rustdoc/link-extern-crate-33178.rs')
-rw-r--r--tests/rustdoc/link-extern-crate-33178.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/rustdoc/link-extern-crate-33178.rs b/tests/rustdoc/link-extern-crate-33178.rs
new file mode 100644
index 000000000..6a63712c4
--- /dev/null
+++ b/tests/rustdoc/link-extern-crate-33178.rs
@@ -0,0 +1,17 @@
+// aux-build:empty.rs
+// aux-build:variant-struct.rs
+// build-aux-docs
+// ignore-cross-compile
+
+// https://github.com/rust-lang/rust/issues/33178
+#![crate_name="issue_33178"]
+
+// @has issue_33178/index.html
+// @has - '//a[@title="mod empty"][@href="../empty/index.html"]' empty
+pub extern crate empty;
+
+// @has - '//a[@title="mod variant_struct"][@href="../variant_struct/index.html"]' variant_struct
+pub extern crate variant_struct as foo;
+
+// @has - '//a[@title="mod issue_33178"][@href="index.html"]' self
+pub extern crate self as bar;