-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustdoc: add another test case for glob shadowing
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// https://github.com/rust-lang/rust/pull/83872#issuecomment-820101008 | ||
#![crate_name="foo"] | ||
|
||
mod sub4 { | ||
/// 0 | ||
pub const X: usize = 0; | ||
pub mod inner { | ||
pub use super::*; | ||
/// 1 | ||
pub const X: usize = 1; | ||
} | ||
} | ||
|
||
#[doc(inline)] | ||
pub use sub4::inner::*; | ||
|
||
// @has 'foo/index.html' | ||
// @has - '//div[@class="item-right docblock-short"]' '1' | ||
// @!has - '//div[@class="item-right docblock-short"]' '0' | ||
fn main() { assert_eq!(X, 1); } |