Skip to content

Commit

Permalink
Add regression test for rust-lang#93205
Browse files Browse the repository at this point in the history
This issue was most likely fixed by rust-lang#93805.
  • Loading branch information
camelid committed Aug 10, 2022
1 parent 93ab13b commit fcbdf08
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/test/rustdoc/intra-doc/assoc-reexport-super.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,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"]'
pub const FOO2: Self = Self::FOO;
}
}

0 comments on commit fcbdf08

Please sign in to comment.