From cec1877e180393eba0f6ddb0cf97bf3a791631c7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 7 Jun 2024 07:48:42 +0200 Subject: Merging upstream version 1.75.0+dfsg1. Signed-off-by: Daniel Baumann --- tests/rustdoc/link-extern-crate-33178.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/rustdoc/link-extern-crate-33178.rs (limited to 'tests/rustdoc/link-extern-crate-33178.rs') 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; -- cgit v1.2.3