Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
rust-2018
/
uniform-paths
/
block-scoped-shadow-nested.rs
blob: 3f5897901a056b7cb1714f880ebe41222e7d31f8 [
file
] [
log
] [
blame
]
// 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
()
{}