We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ee35c6 commit f9df01aCopy full SHA for f9df01a
src/test/rustdoc/glob-shadowing.rs
@@ -10,16 +10,19 @@
10
// @has - '//div[@class="docblock"]' 'sub2::describe'
11
12
mod sub1 {
13
+ // this should be shadowed by sub2::describe
14
/// sub1::describe
15
pub fn describe() -> &'static str {
16
"sub1::describe"
17
}
18
19
+ // this should be shadowed by mod::prelude
20
/// sub1::prelude
21
pub mod prelude {
22
pub use super::describe;
23
24
25
+ // this should not be shadowed, because sub1::Foo and mod::Foo are in different namespace
26
/// sub1::Foo (struct)
27
pub struct Foo;
28
0 commit comments