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(); }