2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2012-12-11 12:20:27 -08:00
|
|
|
|
|
|
|
// Testing that the parser for each file tracks its modules
|
|
|
|
// and paths independently. The load_another_mod module should
|
|
|
|
// not try to reuse the 'mod_dir_simple' path.
|
|
|
|
|
|
|
|
mod mod_dir_simple {
|
|
|
|
pub mod load_another_mod;
|
|
|
|
}
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2013-05-18 22:02:45 -04:00
|
|
|
assert_eq!(mod_dir_simple::load_another_mod::test::foo(), 10);
|
2012-12-11 12:20:27 -08:00
|
|
|
}
|