]> git.lizzy.rs Git - rust.git/blob - src/test/ui/expanded-cfg.rs
Auto merge of #60132 - davidtwco:issue-60075, r=estebank
[rust.git] / src / test / ui / expanded-cfg.rs
1 // skip-codegen
2 // compile-pass
3 #![feature(custom_attribute)]
4 macro_rules! mac {
5     {} => {
6         #[cfg(attr)]
7         mod m {
8             #[lang_item]
9             fn f() {}
10
11             #[cfg_attr(target_thread_local, custom)]
12             fn g() {}
13         }
14
15         #[cfg(attr)]
16         unconfigured_invocation!();
17     }
18 }
19
20 mac! {}
21
22
23 fn main() {}