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#46506
- Loading branch information
1 parent
23a76a8
commit 6b33245
Showing
1 changed file
with
24 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,24 @@ | ||
// This is a regression test for <https://github.com/rust-lang/rust/issues/46506>. | ||
// This test ensures that if public re-exported is re-exported, it won't be inlined. | ||
|
||
#![crate_name = "foo"] | ||
|
||
// @has 'foo/associations/index.html' | ||
// @count - '//*[@id="main-content"]/*[@class="small-section-header"]' 1 | ||
// @has - '//*[@id="main-content"]/*[@class="small-section-header"]' 'Traits' | ||
// @has - '//*[@id="main-content"]//a[@href="trait.GroupedBy.html"]' 'GroupedBy' | ||
// @has 'foo/associations/trait.GroupedBy.html' | ||
pub mod associations { | ||
mod belongs_to { | ||
pub trait GroupedBy {} | ||
} | ||
pub use self::belongs_to::GroupedBy; | ||
} | ||
|
||
// @has 'foo/prelude/index.html' | ||
// @count - '//*[@id="main-content"]/*[@class="small-section-header"]' 1 | ||
// @has - '//*[@id="main-content"]/*[@class="small-section-header"]' 'Re-exports' | ||
// @has - '//*[@id="main-content"]//*[@id="reexport.GroupedBy"]' 'pub use associations::GroupedBy;' | ||
pub mod prelude { | ||
pub use associations::GroupedBy; | ||
} |