]> git.lizzy.rs Git - rust.git/blob - src/test/ui/directory_ownership/macro-expanded-mod.rs
Merge commit '7bfc26ec8e7a454786668e7e52ffe527fc649735' into clippyup
[rust.git] / src / test / ui / directory_ownership / macro-expanded-mod.rs
1 // Test that macro-expanded non-inline modules behave correctly
2
3 macro_rules! mod_decl {
4     ($i:ident) => {
5         mod $i; //~ ERROR cannot declare a non-inline module inside a block
6     };
7 }
8
9 mod macro_expanded_mod_helper {
10     mod_decl!(foo); // This should search in the folder `macro_expanded_mod_helper`
11 }
12
13 fn main() {
14     mod_decl!(foo);
15 }