Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
self
/
self-shadowing-import.rs
blob: 85574daad5fd589b3e6910c242c8683c472e6107 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
mod
a
{
pub
mod
b
{
pub
mod
a
{
pub
fn
foo
()
->
isize
{
return
1
;
}
}
}
}
mod
c
{
use
a
::
b
::
a
;
pub
fn
bar
()
{
assert_eq
!(
a
::
foo
(),
1
);
}
}
pub
fn
main
()
{
c
::
bar
();
}