Sign in
fuchsia
/
third_party
/
rust
/
2bde39b8edce6463e1c37f8a8082a875e7b536b1
/
.
/
src
/
test
/
ui
/
rust-2018
/
uniform-paths
/
block-scoped-shadow-nested.rs
blob: 19be7dc9640409383dbfa8f560a0e16484485944 [
file
] [
log
] [
blame
]
// edition:2018
#![
feature
(
uniform_paths
)]
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
()
{}