mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
22 lines
631 B
Rust
22 lines
631 B
Rust
// This test checks that inlining a `no_inline` is done correctly.
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
//@ has 'foo/index.html'
|
|
// There should be `Re-exports` and `Structs`
|
|
//@ count - '//*[@id="main-content"]/h2' 2
|
|
//@ has - '//*[@id="main-content"]/h2[@class="section-header"]' 'Re-exports'
|
|
//@ has - '//*[@id="main-content"]/h2[@class="section-header"]' 'Structs'
|
|
|
|
//@ has - '//*[@id="main-content"]/dl[@class="item-table reexports"]/dt' 'pub use self::bar::A;'
|
|
//@ has - '//*[@id="main-content"]/dl[@class="item-table"]/dt' 'X'
|
|
|
|
mod bar {
|
|
pub struct A;
|
|
}
|
|
|
|
#[doc(no_inline)]
|
|
pub use self::bar::A;
|
|
#[doc(inline)]
|
|
pub use self::A as X;
|