2023-05-26 16:53:14 -05:00
|
|
|
// This test ensures that all re-exports of doc hidden elements are displayed.
|
|
|
|
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
pub struct Bar;
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
#[doc(hidden)]
|
|
|
|
macro_rules! foo {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has 'foo/index.html'
|
|
|
|
//@ has - '//*[@id="reexport.Macro"]/code' 'pub use crate::foo as Macro;'
|
2023-05-26 16:53:14 -05:00
|
|
|
pub use crate::foo as Macro;
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//*[@id="reexport.Macro2"]/code' 'pub use crate::foo as Macro2;'
|
2023-05-26 16:53:14 -05:00
|
|
|
pub use crate::foo as Macro2;
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//*[@id="reexport.Boo"]/code' 'pub use crate::Bar as Boo;'
|
2023-05-26 16:53:14 -05:00
|
|
|
pub use crate::Bar as Boo;
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//*[@id="reexport.Boo2"]/code' 'pub use crate::Bar as Boo2;'
|
2023-05-26 16:53:14 -05:00
|
|
|
pub use crate::Bar as Boo2;
|
|
|
|
|
|
|
|
pub fn fofo() {}
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//*[@id="reexport.f1"]/code' 'pub use crate::fofo as f1;'
|
2023-05-26 16:53:14 -05:00
|
|
|
pub use crate::fofo as f1;
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//*[@id="reexport.f2"]/code' 'pub use crate::fofo as f2;'
|
2023-05-26 16:53:14 -05:00
|
|
|
pub use crate::fofo as f2;
|
|
|
|
|
|
|
|
pub mod sub {
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has 'foo/sub/index.html'
|
|
|
|
//@ has - '//*[@id="reexport.Macro"]/code' 'pub use crate::foo as Macro;'
|
2023-05-26 16:53:14 -05:00
|
|
|
pub use crate::foo as Macro;
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//*[@id="reexport.Macro2"]/code' 'pub use crate::foo as Macro2;'
|
2023-05-26 16:53:14 -05:00
|
|
|
pub use crate::foo as Macro2;
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//*[@id="reexport.f1"]/code' 'pub use crate::fofo as f1;'
|
2023-05-26 16:53:14 -05:00
|
|
|
pub use crate::fofo as f1;
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//*[@id="reexport.f2"]/code' 'pub use crate::fofo as f2;'
|
2023-05-26 16:53:14 -05:00
|
|
|
pub use crate::fofo as f2;
|
|
|
|
}
|