summary refs log tree commit diff
path: root/tests/ui/macros/issue-34171.rs
blob: fbc2ea50097da551f6629de94f63016a5d131170 (plain)
1
2
3
4
5
6
7
8
9
10
//@ check-pass

macro_rules! null { ($i:tt) => {} }
macro_rules! apply_null {
    ($i:item) => { null! { $i } }
}

fn main() {
    apply_null!(#[cfg(all())] fn f() {});
}