rust/tests/ui/modules/mod_dir_path.rs

24 lines
392 B
Rust
Raw Normal View History

// run-pass
#![allow(unused_macros)]
2016-10-12 12:54:41 -05:00
// ignore-pretty issue #37195
mod mod_dir_simple {
#[path = "test.rs"]
pub mod syrup;
}
pub fn main() {
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!();
}
}