Skip to content

Commit

Permalink
Add regression test for rust-lang#105735
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 16, 2023
1 parent 2778b71 commit c967e25
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/rustdoc/issue-105735-overlapping-reexport.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Regression test to ensure that both `AtomicU8` items are displayed.

#![crate_name = "foo"]

// @has 'foo/index.html'
// @has - '//*[@class="item-name"]/a[@class="struct"]' 'AtomicU8'
// @has - '//*[@class="item-name"]/a[@class="constant"]' 'AtomicU8'
// @has - '//*[@id="reexport.AtomicU8"]/code' 'pub use crate::thing::AtomicU8;'

mod thing {
pub use std::sync::atomic::AtomicU8;

#[allow(non_upper_case_globals)]
pub const AtomicU8: () = ();
}

pub use crate::thing::AtomicU8;

0 comments on commit c967e25

Please sign in to comment.