summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/intra-doc/assoc-reexport-super.rs
blob: a7bc1c6a29f51535c5acb69b8e3e5635f2e55578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
    }
}