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