Skip to content

Commit f9df01a

Browse files
committed
Add some discription to the test file
1 parent 7ee35c6 commit f9df01a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/rustdoc/glob-shadowing.rs

+3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@
1010
// @has - '//div[@class="docblock"]' 'sub2::describe'
1111

1212
mod sub1 {
13+
// this should be shadowed by sub2::describe
1314
/// sub1::describe
1415
pub fn describe() -> &'static str {
1516
"sub1::describe"
1617
}
1718

19+
// this should be shadowed by mod::prelude
1820
/// sub1::prelude
1921
pub mod prelude {
2022
pub use super::describe;
2123
}
2224

25+
// this should not be shadowed, because sub1::Foo and mod::Foo are in different namespace
2326
/// sub1::Foo (struct)
2427
pub struct Foo;
2528
}

0 commit comments

Comments
 (0)