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