/**
 *
 * https://doc.rust-lang.org/rust-by-example/mod/use.html
 */
use deeply::nested::function as other_function;

fn function() {
    println!("called `function()`");
}

mod deeply {
    pub mod nested {
        pub fn function() {
            println!("called `deeply::nested::function()`");
        }
    }
}

fn main() {
    other_function();

    println!("Entering block");
    {
        use crate::deeply::nested::function;

        function();

        println!("Leaving block");
    }

    function();
}
