]> git.lizzy.rs Git - rust.git/blob - src/test/ui/expanded-cfg.rs
Rollup merge of #88090 - nbdd0121:inference, r=nikomatsakis
[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() {}