Rollup merge of #100348 - camelid:test-93205, r=jyn514
Add regression test for #93205 Closes #93205. This issue was most likely fixed by #93805.
This commit is contained in:
commit
a6116b9564
1 changed files with 20 additions and 0 deletions
20
src/test/rustdoc/intra-doc/assoc-reexport-super.rs
Normal file
20
src/test/rustdoc/intra-doc/assoc-reexport-super.rs
Normal file
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue