2023-04-20 10:49:13 -05:00
|
|
|
// 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'
|
2023-11-29 14:38:56 -06:00
|
|
|
// @count - '//*[@id="main-content"]/*[@class="section-header"]' 1
|
|
|
|
// @has - '//*[@id="main-content"]/*[@class="section-header"]' 'Traits'
|
2023-04-20 10:49:13 -05:00
|
|
|
// @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'
|
2023-11-29 14:38:56 -06:00
|
|
|
// @count - '//*[@id="main-content"]/*[@class="section-header"]' 1
|
|
|
|
// @has - '//*[@id="main-content"]/*[@class="section-header"]' 'Re-exports'
|
2023-04-20 10:49:13 -05:00
|
|
|
// @has - '//*[@id="main-content"]//*[@id="reexport.GroupedBy"]' 'pub use associations::GroupedBy;'
|
|
|
|
pub mod prelude {
|
|
|
|
pub use associations::GroupedBy;
|
|
|
|
}
|