]> git.proxmox.com Git - rustc.git/blob - tests/ui/modules/mod_dir_recursive.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / modules / mod_dir_recursive.rs
1 // run-pass
2 // ignore-pretty issue #37195
3
4 // Testing that the parser for each file tracks its modules
5 // and paths independently. The load_another_mod module should
6 // not try to reuse the 'mod_dir_simple' path.
7
8 mod mod_dir_simple {
9 pub mod load_another_mod;
10 }
11
12 pub fn main() {
13 assert_eq!(mod_dir_simple::load_another_mod::test::foo(), 10);
14 }