Skip to content

Commit c967e25

Browse files
Add regression test for rust-lang#105735
1 parent 2778b71 commit c967e25

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Regression test to ensure that both `AtomicU8` items are displayed.
2+
3+
#![crate_name = "foo"]
4+
5+
// @has 'foo/index.html'
6+
// @has - '//*[@class="item-name"]/a[@class="struct"]' 'AtomicU8'
7+
// @has - '//*[@class="item-name"]/a[@class="constant"]' 'AtomicU8'
8+
// @has - '//*[@id="reexport.AtomicU8"]/code' 'pub use crate::thing::AtomicU8;'
9+
10+
mod thing {
11+
pub use std::sync::atomic::AtomicU8;
12+
13+
#[allow(non_upper_case_globals)]
14+
pub const AtomicU8: () = ();
15+
}
16+
17+
pub use crate::thing::AtomicU8;

0 commit comments

Comments
 (0)