2022-08-09 18:08:42 -05:00
|
|
|
// 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`].
|
2022-08-09 23:13:31 -05:00
|
|
|
// @has 'foo/struct.MyNewType.html' '//a[@href="struct.MyNewType.html#associatedconstant.FOO"]' 'Self::FOO'
|
2022-08-09 18:08:42 -05:00
|
|
|
pub const FOO2: Self = Self::FOO;
|
|
|
|
}
|
|
|
|
}
|