Skip to content

Commit

Permalink
Rollup merge of #100348 - camelid:test-93205, r=jyn514
Browse files Browse the repository at this point in the history
Add regression test for #93205

Closes #93205.

This issue was most likely fixed by #93805.
  • Loading branch information
compiler-errors authored Aug 10, 2022
2 parents f0fdc46 + 7bfcfd2 commit a6116b9
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"]' 'Self::FOO'
pub const FOO2: Self = Self::FOO;
}
}

0 comments on commit a6116b9

Please sign in to comment.