2019-07-27 00:54:25 +03:00
|
|
|
// run-pass
|
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
pub fn f() -> isize { return 1; }
|
2012-09-21 18:10:45 -07:00
|
|
|
|
2013-01-30 15:56:40 -08:00
|
|
|
pub mod foo {
|
2015-03-25 17:06:52 -07:00
|
|
|
pub fn f() -> isize { return 2; }
|
2015-06-07 21:00:38 +03:00
|
|
|
pub fn g() {
|
|
|
|
assert_eq!(f(), 2);
|
|
|
|
assert_eq!(::f(), 1);
|
|
|
|
}
|
2011-07-11 16:01:46 -07:00
|
|
|
}
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() { return foo::g(); }
|