2022-09-09 20:13:31 -05:00
|
|
|
// 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'
|
2023-02-07 20:00:18 -06:00
|
|
|
// @has - '//div[@class="desc docblock-short"]' '1'
|
|
|
|
// @!has - '//div[@class="desc docblock-short"]' '0'
|
2022-09-09 20:13:31 -05:00
|
|
|
fn main() { assert_eq!(X, 1); }
|