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.
2 parents 6f94ccb + 4f01c6b commit 229c694Copy full SHA for 229c694
src/mod/use.md
@@ -44,10 +44,11 @@ fn main() {
44
// This is equivalent to `use deeply::nested::function as function`.
45
// This `function()` will shadow the outer one.
46
use crate::deeply::nested::function;
47
- function();
48
49
// `use` bindings have a local scope. In this case, the
50
// shadowing of `function()` is only in this block.
+ function();
51
+
52
println!("Leaving block");
53
}
54
0 commit comments