mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
894c98652c
This switches from using `<div>` to the more semantic `<ul>`, and using class names that rhyme with the classes the search results table uses.
21 lines
445 B
Rust
21 lines
445 B
Rust
// 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="desc docblock-short"]' '1'
|
|
// @!has - '//div[@class="desc docblock-short"]' '0'
|
|
fn main() { assert_eq!(X, 1); }
|