]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-34171.rs
Rollup merge of #106244 - atouchet:readme3, r=workingjubilee
[rust.git] / tests / ui / macros / issue-34171.rs
1 // check-pass
2
3 macro_rules! null { ($i:tt) => {} }
4 macro_rules! apply_null {
5     ($i:item) => { null! { $i } }
6 }
7
8 fn main() {
9     apply_null!(#[cfg(all())] fn f() {});
10 }