]> git.lizzy.rs Git - rust.git/blob - tests/ui/modules/mod_dir_path.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / modules / mod_dir_path.rs
1 // run-pass
2 #![allow(unused_macros)]
3 // ignore-pretty issue #37195
4
5 mod mod_dir_simple {
6     #[path = "test.rs"]
7     pub mod syrup;
8 }
9
10 pub fn main() {
11     assert_eq!(mod_dir_simple::syrup::foo(), 10);
12
13     #[path = "auxiliary"]
14     mod foo {
15         mod two_macros_2;
16     }
17
18     #[path = "auxiliary"]
19     mod bar {
20         macro_rules! m { () => { mod two_macros_2; } }
21         m!();
22     }
23 }