]> git.lizzy.rs Git - rust.git/blob - src/test/ui/directory_ownership/macro-expanded-mod.rs
Update const_forget.rs
[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) => { mod $i; } //~ ERROR Cannot declare a non-inline module inside a block
5 }
6
7 mod macro_expanded_mod_helper {
8     mod_decl!(foo); // This should search in the folder `macro_expanded_mod_helper`
9 }
10
11 fn main() {
12     mod_decl!(foo);
13 }