2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_macros)]
|
2012-12-11 14:20:27 -06:00
|
|
|
|
|
|
|
mod mod_dir_simple {
|
2012-12-17 20:06:52 -06:00
|
|
|
#[path = "test.rs"]
|
2012-12-11 14:20:27 -06:00
|
|
|
pub mod syrup;
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2013-05-18 21:02:45 -05:00
|
|
|
assert_eq!(mod_dir_simple::syrup::foo(), 10);
|
2016-09-27 16:31:30 -05:00
|
|
|
|
|
|
|
#[path = "auxiliary"]
|
|
|
|
mod foo {
|
2018-04-21 09:18:38 -05:00
|
|
|
mod two_macros_2;
|
2016-09-27 16:31:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#[path = "auxiliary"]
|
|
|
|
mod bar {
|
2018-04-21 09:18:38 -05:00
|
|
|
macro_rules! m { () => { mod two_macros_2; } }
|
2016-09-27 16:31:30 -05:00
|
|
|
m!();
|
|
|
|
}
|
2012-12-11 14:20:27 -06:00
|
|
|
}
|