mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
21 lines
442 B
Rust
21 lines
442 B
Rust
// 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;
|
|
}
|
|
}
|