diff --git a/src/mod/use.md b/src/mod/use.md index 44cef988cc..8860bc20b4 100644 --- a/src/mod/use.md +++ b/src/mod/use.md @@ -44,10 +44,11 @@ fn main() { // This is equivalent to `use deeply::nested::function as function`. // This `function()` will shadow the outer one. use crate::deeply::nested::function; - function(); // `use` bindings have a local scope. In this case, the // shadowing of `function()` is only in this block. + function(); + println!("Leaving block"); }