2023-07-16 08:54:23 -05:00
|
|
|
// Regression test to ensure that both `AtomicU8` items are displayed but not the re-export.
|
2024-07-12 19:36:21 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/105735
|
2023-07-16 08:54:23 -05:00
|
|
|
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
#![no_std]
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has 'foo/index.html'
|
|
|
|
//@ has - '//*[@class="item-name"]/a[@class="struct"]' 'AtomicU8'
|
|
|
|
//@ has - '//*[@class="item-name"]/a[@class="constant"]' 'AtomicU8'
|
2023-07-16 08:54:23 -05:00
|
|
|
// We also ensure we don't have another item displayed.
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ count - '//*[@id="main-content"]/*[@class="section-header"]' 2
|
|
|
|
//@ has - '//*[@id="main-content"]/*[@class="section-header"]' 'Structs'
|
|
|
|
//@ has - '//*[@id="main-content"]/*[@class="section-header"]' 'Constants'
|
2023-07-16 08:54:23 -05:00
|
|
|
|
|
|
|
mod thing {
|
|
|
|
pub use core::sync::atomic::AtomicU8;
|
|
|
|
|
|
|
|
#[allow(non_upper_case_globals)]
|
|
|
|
pub const AtomicU8: () = ();
|
|
|
|
}
|
|
|
|
|
|
|
|
pub use crate::thing::AtomicU8;
|