]> git.lizzy.rs Git - rust.git/blob - src/test/ui/expanded-cfg.rs
Merge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_clif-2020-12-27
[rust.git] / src / test / ui / expanded-cfg.rs
1 // check-pass
2
3 macro_rules! mac {
4     {} => {
5         #[cfg(attr)]
6         mod m {
7             #[lang_item]
8             fn f() {}
9
10             #[cfg_attr(target_thread_local, custom)]
11             fn g() {}
12         }
13
14         #[cfg(attr)]
15         unconfigured_invocation!();
16     }
17 }
18
19 mac! {}
20
21 fn main() {}