Add regression test for #93205

This issue was most likely fixed by #93805.
This commit is contained in:
Noah Lev 2022-08-09 16:08:42 -07:00
parent 93ab13b4e8
commit fcbdf08a86

View 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"]'
pub const FOO2: Self = Self::FOO;
}
}