Sign in
fuchsia
/
third_party
/
rust
/
41601a8c95240cada94c13466a1fea02e5fe87ed
/
.
/
src
/
test
/
ui
/
global-scope.rs
blob: 944eee5afc307e7ee99ebbc901b3b7a40639bdf6 [
file
] [
log
] [
blame
]
// run-pass
pub
fn
f
()
->
isize
{
return
1
;
}
pub
mod
foo
{
pub
fn
f
()
->
isize
{
return
2
;
}
pub
fn
g
()
{
assert_eq
!(
f
(),
2
);
assert_eq
!(::
f
(),
1
);
}
}
pub
fn
main
()
{
return
foo
::
g
();
}