rust/tests/rustdoc/intra-doc/assoc-reexport-super.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
442 B
Rust
Raw Normal View History

// 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;
}
}