about summary refs log tree commit diff
path: root/tests/rustdoc/intra-doc/assoc-reexport-super.rs
blob: 2a55586925fd8f04f64836a77bbdab29e795255c (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;
    }
}