rust/tests/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
217 B
Rust
Raw Normal View History

// edition:2018
mod my {
pub mod sub {
pub fn bar() {}
}
}
mod sub {
pub fn bar() {}
}
fn foo() {
use my::sub;
{
use sub::bar; //~ ERROR `sub` is ambiguous
}
}
fn main() {}