about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-08-10 09:28:21 -0700
committerGitHub <noreply@github.com>2022-08-10 09:28:21 -0700
commita6116b95640451c14858a487b3cfcf31f3e67b77 (patch)
tree0704a71d898fb1adf87276de18c92de69adb9016
parentf0fdc464be76cd589ff3981796d398d8a73c5d6f (diff)
parent7bfcfd2242e2e5a8ad1599ad916e288b0e025eb8 (diff)
downloadrust-a6116b95640451c14858a487b3cfcf31f3e67b77.tar.gz
rust-a6116b95640451c14858a487b3cfcf31f3e67b77.zip
Rollup merge of #100348 - camelid:test-93205, r=jyn514
Add regression test for #93205

Closes #93205.

This issue was most likely fixed by #93805.
-rw-r--r--src/test/rustdoc/intra-doc/assoc-reexport-super.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/rustdoc/intra-doc/assoc-reexport-super.rs b/src/test/rustdoc/intra-doc/assoc-reexport-super.rs
new file mode 100644
index 00000000000..a7bc1c6a29f
--- /dev/null
+++ b/src/test/rustdoc/intra-doc/assoc-reexport-super.rs
@@ -0,0 +1,20 @@
+// Regression test for #93205
+
+#![crate_name = "foo"]
+
+mod generated {
+    pub struct MyNewType;
+    impl MyNewType {
+        pub const FOO: Self = Self;
+    }
+}
+
+pub use generated::MyNewType;
+
+mod prelude {
+    impl super::MyNewType {
+        /// An alias for [`Self::FOO`].
+        // @has 'foo/struct.MyNewType.html' '//a[@href="struct.MyNewType.html#associatedconstant.FOO"]' 'Self::FOO'
+        pub const FOO2: Self = Self::FOO;
+    }
+}