Skip to content

Commit a6116b9

Browse files
Rollup merge of rust-lang#100348 - camelid:test-93205, r=jyn514
Add regression test for rust-lang#93205 Closes rust-lang#93205. This issue was most likely fixed by rust-lang#93805.
2 parents f0fdc46 + 7bfcfd2 commit a6116b9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
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"]' 'Self::FOO'
18+
pub const FOO2: Self = Self::FOO;
19+
}
20+
}

0 commit comments

Comments
 (0)