forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for rust-lang#93205
This issue was most likely fixed by rust-lang#93805.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |