rust/tests/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.rs
2024-02-16 20:02:50 +00:00

22 lines
210 B
Rust

//@ check-pass
//@ edition:2018
mod my {
pub mod sub {
pub fn bar() {}
}
}
mod sub {
pub fn bar() {}
}
fn foo() {
use my::sub;
{
use sub::bar; // OK
}
}
fn main() {}