Skip to content

Commit fcbdf08

Browse files
committed
Add regression test for rust-lang#93205
This issue was most likely fixed by rust-lang#93805.
1 parent 93ab13b commit fcbdf08

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: src/test/rustdoc/intra-doc/assoc-reexport-super.rs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Regression test for #93205
2+
3+
#![crate_name = "foo"]
4+
5+
mod generated {
6+
pub struct MyNewType;
7+
impl MyNewType {
8+
pub const FOO: Self = Self;
9+
}
10+
}
11+
12+
pub use generated::MyNewType;
13+
14+
mod prelude {
15+
impl super::MyNewType {
16+
/// An alias for [`Self::FOO`].
17+
// @has 'foo/struct.MyNewType.html' '//a[@href="struct.MyNewType.html#associatedconstant.FOO"]'
18+
pub const FOO2: Self = Self::FOO;
19+
}
20+
}

0 commit comments

Comments
 (0)